Put back hashes and comments

This commit is contained in:
Michael Ludvig
2024-04-16 16:20:48 +12:00
committed by GitHub
parent 9d41ab9339
commit be52680fcd
+13 -3
View File
@@ -1,3 +1,12 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Create and publish Docker images
on:
@@ -5,6 +14,7 @@ on:
branches:
- main
#- main-stable # Disabled as the v* tag is used for stable releases
- arm-*
tags:
- 'v*' # Trigger on version tags (e.g., v1.7.0)
@@ -30,7 +40,7 @@ jobs:
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -38,7 +48,7 @@ jobs:
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
@@ -49,7 +59,7 @@ jobs:
type=sha # Just in case none of the above applies
- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: Dockerfile