Skip to content

Commit ee08ab5

Browse files
committed
Add CI workflow to deploy camel-dashboard-operator image
1 parent 2305d3f commit ee08ab5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/operator.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Operator
2+
3+
on:
4+
schedule:
5+
- cron: "30 4 * * *"
6+
pull_request:
7+
branches:
8+
- "main"
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- id: checkout-operator-repo
14+
name: Checkout Camel Dashboard Operator repo
15+
uses: actions/checkout@v4
16+
with:
17+
repository: squakez/camel-dashboard-operator
18+
path: camel-dashboard-operator
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version-file: "camel-dashboard-operator/go.mod"
24+
check-latest: true
25+
26+
- name: Login to Docker Hub
27+
uses: docker/login-action@v3
28+
with:
29+
registry: quay.io
30+
username: ${{ secrets.QUAY_USERNAME }}
31+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
32+
33+
- name: Build operator
34+
shell: bash
35+
run: |
36+
pushd camel-dashboard-operator
37+
NOTEST=1 make build
38+
NOTEST=1 CUSTOM_IMAGE=quay.io/camel-tooling/camel-dashboard-operator CUSTOM_VERSION=latest make images
39+
NOTEST=1 CUSTOM_IMAGE=quay.io/camel-tooling/camel-dashboard-operator CUSTOM_VERSION=latest make images-push

0 commit comments

Comments
 (0)