Add CI workflow to deploy camel-dashboard-operator image #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Operator | |
on: | |
schedule: | |
- cron: "30 4 * * *" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_ROBOT_TOKEN }} | |
- id: checkout-operator-repo | |
name: Checkout Camel Dashboard Operator repo | |
uses: actions/checkout@v4 | |
with: | |
repository: squakez/camel-dashboard-operator | |
path: camel-dashboard-operator | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "camel-dashboard-operator/go.mod" | |
check-latest: true | |
- name: Build operator | |
shell: bash | |
run: | | |
pushd camel-dashboard-operator | |
NOTEST=1 make build | |
NOTEST=1 CUSTOM_IMAGE=quay.io/camel-tooling/camel-dashboard-operator CUSTOM_VERSION=latest make images | |
NOTEST=1 CUSTOM_IMAGE=quay.io/camel-tooling/camel-dashboard-operator CUSTOM_VERSION=latest make images-push |