GH image: fix branch tag

This commit is contained in:
Jens Petersen 2021-06-17 22:59:33 +08:00
parent ceaa6825ab
commit 14f4d3b79f

View File

@ -19,7 +19,7 @@ jobs:
- name: Build image - name: Build image
run: | run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}:${{ github.branch }} IMAGE_ID=docker.pkg.github.com/${{ github.repository }}:${GITHUB_REF#refs/heads/}
docker build . -f Dockerfile --tag $IMAGE_ID docker build . -f Dockerfile --tag $IMAGE_ID
docker push $IMAGE_ID docker push $IMAGE_ID
echo Pushed new build image $IMAGE_ID echo Pushed new build image $IMAGE_ID