Skip to content

Commit acea5fe

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

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Main
22

33
on:
44
pull_request:

.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+
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- name: Login to Docker Hub
14+
uses: docker/login-action@v3
15+
if: github.ref == 'refs/heads/main'
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)