Skip to content

Commit e5f3885

Browse files
committed
chore: added build controller ci
1 parent 7081131 commit e5f3885

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/controller.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Controller
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
paths:
8+
- ".github/workflows/controller.yml"
9+
- "operator/**"
10+
11+
jobs:
12+
build-images:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- context: operator
18+
file: operator/Dockerfile
19+
endpoint: demeter-run/ext-cardano-dbsync-serverless
20+
21+
continue-on-error: true
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/[email protected]
25+
26+
- name: Login to GitHub Container Registry
27+
uses: docker/login-action@v1
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Build and push
34+
uses: docker/build-push-action@v2
35+
with:
36+
context: ${{ matrix.context }}
37+
file: ${{ matrix.file }}
38+
platforms: linux/amd64
39+
push: true
40+
tags: ghcr.io/${{ matrix.endpoint }},ghcr.io/${{ matrix.endpoint }}:${{ github.sha }}

0 commit comments

Comments
 (0)