From ebadb523dea7d3e9b5e4a409f882428feda133fe Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 5 Nov 2024 11:35:34 -0500 Subject: [PATCH] fix: Updates tag name when building images --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 526b85b..46de0f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ on: # Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds. env: REGISTRY: ghcr.io - IMAGE_NAME: swift-mqtt-dewpoint + IMAGE_NAME: ${{ github.repository }} # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: @@ -47,7 +47,7 @@ jobs: with: context: . push: true - tags: swift-mqtt-dewpoint:latest + tags: ${{ env.IMAGE_NAME }}:latest labels: ${{ steps.meta.outputs.labels }} # This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."