diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index c81ea4d..34f1dde 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -5,7 +5,8 @@ on: branches: - main env: - IMAGE_REPO: ghcr.io/fluttershub + IMAGE_REGISTRY: ghcr.io + IMAGE_OWNER: fluttershub IMAGE_NAME: homepage jobs: @@ -24,8 +25,8 @@ jobs: - name: Login to ghcr.io uses: docker/login-action@v1 with: - registry: ghcr.io - username: fluttershub + registry: ${{ env.IMAGE_REGISTRY }} + username: ${{ env.IMAGE_OWNER }} password: ${{ secrets.CR_PAT }} - name: Build and push @@ -33,7 +34,8 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: ${{ env.IMAGE_REPO }}/${{ env.IMAGE_NAME }}:latest + labels: org.opencontainers.image.source https://github.com/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }} + tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest Deploy: runs-on: ubuntu-latest needs: BuildImage