forked from openshift-psap/special-resource-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 962 Bytes
/
image-master.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: image-master
on:
pull_request_target:
types: [ closed ]
workflow_dispatch:
jobs:
merge_job:
name: build-master
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
with:
ref: "master"
persist-credentials: false
- uses: actions/setup-go@v2
with:
go-version: 1.18
- run: make local-image-build
env:
TAG: master
- uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD}}
- run: make local-image-push
env:
TAG: master
# close_job:
# this job will only run if the PR has been closed without being merged
# if: github.event.pull_request.merged == false
# runs-on: ubuntu-20.04
# steps:
# - run: |
# echo PR #${{ github.event.number }} has been closed without being merged