diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9b82b6..12483e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build image - run: docker build . --file Dockerfile --tag $IMAGE_NAME + run: docker build . --file Dockerfile --label "version=$TAG" --tag $IMAGE_NAME + env: + TAG: v${{ needs.test-versions.outputs.version }} - name: Log into registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin - name: Push image