Skip to content

Commit 564d998

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

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/operator.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
14+
- name: Login to Docker Hub
15+
uses: docker/login-action@v3
16+
with:
17+
registry: quay.io
18+
username: ${{ secrets.QUAY_USERNAME }}
19+
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
20+
21+
- id: checkout-operator-repo
22+
name: Checkout Camel Dashboard Operator repo
23+
uses: actions/checkout@v4
24+
with:
25+
repository: squakez/camel-dashboard-operator
26+
path: camel-dashboard-operator
27+
28+
- name: Set up Go
29+
uses: actions/setup-go@v5
30+
with:
31+
go-version-file: "camel-dashboard-operator/go.mod"
32+
check-latest: true
33+
34+
- name: Build operator
35+
shell: bash
36+
run: |
37+
pushd camel-dashboard-operator
38+
NOTEST=1 make build
39+
NOTEST=1 CUSTOM_IMAGE=quay.io/camel-tooling/camel-dashboard-operator CUSTOM_VERSION=latest make images
40+
NOTEST=1 CUSTOM_IMAGE=quay.io/camel-tooling/camel-dashboard-operator CUSTOM_VERSION=latest make images-push

0 commit comments

Comments
 (0)