Correct tag syntax and only push latest on a push to master

pull/239/head
HubbeKing 3 years ago committed by Mike Lang
parent 4fe27d556a
commit 87b21c0814

@ -52,5 +52,13 @@ jobs:
with: with:
context: ./${{ matrix.component }} context: ./${{ matrix.component }}
file: Dockerfile file: Dockerfile
tags: ghcr.io/ekimekim/wubloader-${{ matrix.component }}:$TAG,ghcr.io/ekimekim/wubloader-${{ matrix.component }}:latest tags: ghcr.io/ekimekim/wubloader-${{ matrix.component }}:${{ env.TAG }}
push: true push: true
- name: Build ${{ matrix.component }} latest
uses: docker/build-push-action@v2.7.0
if: github.event_name != 'pull_request' and github.ref == 'refs/heads/master'
with:
context: ./${{ matrix.component }}
file: Dockerfile
tags: ghcr.io/ekimekim/wubloader-${{ matrix.component }}:latest

Loading…
Cancel
Save