fix: Updates tag name when building images

This commit is contained in:
2024-11-05 11:35:34 -05:00
parent 7e214fc9a1
commit ebadb523de

View File

@@ -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)."