Skip to content

Commit fb87179

Browse files
Updated CI to push image on merge (#105)
Signed-off-by: Chaitanya Kulkarni <chkulkar@redhat.com>
1 parent 27afaab commit fb87179

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/maas-api-ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: MaaS API
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58
paths:
69
- 'maas-api/**'
@@ -39,4 +42,15 @@ jobs:
3942

4043
- name: Build image
4144
run: make build-image
42-
45+
46+
- name: Login to Quay.io
47+
if: github.event_name == 'push'
48+
uses: docker/login-action@v3
49+
with:
50+
registry: quay.io
51+
username: ${{ secrets.APP_QUAY_USERNAME }}
52+
password: ${{ secrets.APP_QUAY_TOKEN }}
53+
54+
- name: Push image to Quay.io
55+
if: github.event_name == 'push'
56+
run: make push-image

0 commit comments

Comments
 (0)