From be52680fcdf9f6da7f4b4c03d6959f7a4c07a33e Mon Sep 17 00:00:00 2001 From: Michael Ludvig <745857+mludvig@users.noreply.github.com> Date: Tue, 16 Apr 2024 16:20:48 +1200 Subject: [PATCH] Put back hashes and comments --- .github/workflows/docker-image.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 5980c7496..863d978c4 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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