fix: latest tag

This commit is contained in:
Tom Andrade 2022-05-18 13:50:53 +02:00
parent 22ec82a326
commit fe2aaf8537
Signed by: wolvie
GPG Key ID: 31AAB07872E82669

View File

@ -11,11 +11,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
run: docker build . -t tandrade/short:$(echo $([[ $(git rev-parse --abbrev-ref HEAD) == master ]] && echo latest || echo latest-modsec))
run: docker build . -t tandrade/short:latest
- name: Login
uses: docker/login-action@v1.10.0
with:
username: tandrade
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Push
run: docker push tandrade/short:$(echo $([[ $(git rev-parse --abbrev-ref HEAD) == master ]] && echo latest || echo latest-modsec))
run: docker push tandrade/short:latest