diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 6d0f95f..28b4596 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -8,6 +8,8 @@ jobs: push_to_registry: name: Push Docker image to Docker Hub runs-on: ubuntu-latest + env: + IMAGE_NAME: obiba/obiba-r permissions: id-token: write contents: read @@ -27,7 +29,7 @@ jobs: id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: obiba/obiba-r + images: ${{ env.IMAGE_NAME }} tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} @@ -47,7 +49,7 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}} + subject-name: ${{ env.IMAGE_NAME }} subject-digest: ${{ steps.push.outputs.digest }} push-to-registry: true