Use github.repository instead

This commit is contained in:
Jauder Ho 2021-08-09 11:53:48 +00:00
parent 63722babe9
commit b04745d960

View File

@ -34,11 +34,11 @@ jobs:
id: docker_meta id: docker_meta
uses: docker/metadata-action@v3 uses: docker/metadata-action@v3
with: with:
images: ${{ env.REPOSITORY }} images: ${{ github.repository }}
labels: | labels: |
org.opencontainers.image.version=${{ env.BUILD_VERSION }} org.opencontainers.image.version=${{ env.BUILD_VERSION }}
org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.title=${{ env.REPOSITORY }} org.opencontainers.image.title=${{ github.repository }}
- name: GitHub login - name: GitHub login
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
@ -60,4 +60,4 @@ jobs:
cache-to: type=gha, scope=${{ github.workflow }} cache-to: type=gha, scope=${{ github.workflow }}
labels: ${{ steps.docker_meta.outputs.labels }} labels: ${{ steps.docker_meta.outputs.labels }}
tags: | tags: |
ghcr.io/${{ env.REPOSITORY }}:${{ env.BUILD_VERSION }} ghcr.io/${{ github.repository }}:${{ env.BUILD_VERSION }}