File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 9
9
10
10
push :
11
11
branches : ['main']
12
+ pull_request :
13
+
12
14
13
15
jobs :
14
16
build :
15
17
runs-on : ubuntu-latest
16
18
steps :
17
- - name : Login in quay
18
- run : docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN}
19
- env :
20
- QUAY_USER : ${{ secrets.QUAY_USERNAME }}
21
- QUAY_TOKEN : ${{ secrets.QUAY_PASSWORD }}
22
19
- name : Check out code
23
20
uses : actions/checkout@main
24
21
- name : Add krknctl metadata to Dockerfiles
25
22
run : |
26
23
bash build.sh
27
24
- name : Build the Docker images
28
25
run : docker compose build --parallel
26
+ - name : Login in quay
27
+ if : ${{ github.ref == 'refs/heads/main' }}
28
+ run : docker login quay.io -u ${QUAY_USER} -p ${QUAY_TOKEN}
29
+ env :
30
+ QUAY_USER : ${{ secrets.QUAY_USERNAME }}
31
+ QUAY_TOKEN : ${{ secrets.QUAY_PASSWORD }}
29
32
- name : Push the Docker images
33
+ if : ${{ github.ref == 'refs/heads/main' }}
30
34
run : docker compose push
31
35
- name : Call repo lambda
36
+ if : ${{ github.ref == 'refs/heads/main'}}
32
37
run : |
33
38
curl --location --request POST '${{ secrets.LAMBDA_URL }}' --header 'Authorization: Bearer ${{ secrets.LAMBDA_TOKEN }}'
34
39
You can’t perform that action at this time.
0 commit comments