fix: fix docker workflow to build latest tag

This commit is contained in:
Alf
2021-03-16 22:06:49 -07:00
parent c36cbabf23
commit 462d2a240e

View File

@@ -13,6 +13,6 @@ jobs:
- name: Build the Docker image
run: |
docker login ghcr.io --username $GITHUB_ACTOR --password ${{ secrets.CR_TOKEN }}
docker build . --file Dockerfile --tag ghcr.io/alfg/ffmpegd:${GITHUB_REF/refs\/tags\//}
docker push ghcr.io/alfg/ffmpegd:latest
docker push ghcr.io/alfg/ffmpegd:${GITHUB_REF/refs\/tags\//}
docker build . --file Dockerfile --tag ghcr.io/alfg/ffmpegd:${GITHUB_REF/refs\/tags\//} --tag ghcr.io/alfg/ffmpegd:latest
docker push ghcr.io/alfg/ffmpegd:${GITHUB_REF/refs\/tags\//}
docker push ghcr.io/alfg/ffmpegd:latest