Skip to content

Commit

Permalink
pin github action versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed May 13, 2024
1 parent 416d785 commit 89cc5de
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 35 deletions.
51 changes: 24 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ on:
inputs:
reason:
required: true
description: 'Reason for running this workflow'
description: "Reason for running this workflow"
push:
branches:
- main
# Don't trigger if it's just a documentation update
paths-ignore:
- '**.md'
- '**.MD'
- '**.yml'
- 'LICENSE'
- '.gitattributes'
- '.gitignore'
- '.dockerignore'
- "**.md"
- "**.MD"
- "**.yml"
- "LICENSE"
- ".gitattributes"
- ".gitignore"
- ".dockerignore"

# Set workflow-wide environment variables
# - REPO: repo name on dockerhub
Expand All @@ -28,7 +28,6 @@ env:
GHCR_REGISTRY: ghcr.io

jobs:

workflow-dispatch:
name: Triggered via Workflow Dispatch?
# only run this step if workflow dispatch triggered
Expand Down Expand Up @@ -59,7 +58,6 @@ jobs:
needs: [hadolint]
runs-on: ubuntu-latest
steps:

# Check out our code
- name: Checkout
uses: actions/checkout@v4.1.5
Expand All @@ -68,7 +66,7 @@ jobs:

# Log into ghcr (so we can push images)
- name: Login to ghcr.io
uses: docker/login-action@v3
uses: docker/login-action@v3.1.0
with:
registry: ${{ env.GHCR_REGISTRY }}
username: ${{ github.repository_owner }}
Expand All @@ -77,22 +75,22 @@ jobs:
# Get metadata from repo
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}

# Set up QEMU for multi-arch builds
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3.0.0

# Set up buildx for multi platform builds
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3.3.0

# Build "latest"
- name: Build & Push - latest
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5.3.0
with:
context: .
file: ./Dockerfile
Expand All @@ -115,7 +113,7 @@ jobs:
# Build version specific
- name: Build & Push - version specific
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5.3.0
with:
context: .
file: ./Dockerfile
Expand All @@ -131,7 +129,7 @@ jobs:

# # Build "latest_nohealthcheck"
# - name: Build & Push - latest nohealthcheck
# uses: docker/build-push-action@v5
# uses: docker/build-push-action@v5.3.0
# with:
# context: .
# file: ./Dockerfile.nohealthcheck
Expand All @@ -143,7 +141,7 @@ jobs:

# # Build version specific _nohealthcheck
# - name: Build & Push - version specific nohealthcheck
# uses: docker/build-push-action@v5
# uses: docker/build-push-action@v5.3.0
# with:
# context: .
# file: ./Dockerfile.nohealthcheck
Expand All @@ -165,7 +163,6 @@ jobs:
- linux/arm/v7

steps:

# Check out our code
- name: Checkout
uses: actions/checkout@v4.1.5
Expand All @@ -174,7 +171,7 @@ jobs:

# Log into ghcr (so we can push images)
- name: Login to ghcr.io
uses: docker/login-action@v3
uses: docker/login-action@v3.1.0
with:
registry: ${{ env.GHCR_REGISTRY }}
username: ${{ github.repository_owner }}
Expand All @@ -183,18 +180,18 @@ jobs:
# Get metadata from repo
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}

# Set up QEMU for multi-arch builds
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3.0.0

# Set up buildx for multi platform builds
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3.3.0

# Get archictecture suffix
- name: Get image architecture suffix
Expand All @@ -208,7 +205,7 @@ jobs:
# Build "latest"
- name: Build & Push - latest
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5.3.0
with:
context: .
file: ./Dockerfile
Expand All @@ -231,7 +228,7 @@ jobs:
# Build version specific
- name: Build & Push - version specific
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5.3.0
with:
context: .
file: ./Dockerfile
Expand All @@ -247,7 +244,7 @@ jobs:

# # Build "latest_nohealthcheck"
# - name: Build & Push - latest nohealthcheck
# uses: docker/build-push-action@v5
# uses: docker/build-push-action@v5.3.0
# with:
# context: .
# file: ./Dockerfile.nohealthcheck
Expand All @@ -259,7 +256,7 @@ jobs:

# # Build version specific _nohealthcheck
# - name: Build & Push - version specific nohealthcheck
# uses: docker/build-push-action@v5
# uses: docker/build-push-action@v5.3.0
# with:
# context: .
# file: ./Dockerfile.nohealthcheck
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/on_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
python-version: "3.9"
- name: flake8 Lint
uses: py-actions/flake8@v2
uses: py-actions/flake8@v2.3.0
with:
ignore: "E501,E111,E114"

Expand Down Expand Up @@ -64,7 +64,6 @@ jobs:
- linux/arm64
- linux/arm/v7
steps:

# Check out our code
- name: Checkout
uses: actions/checkout@v4.1.5
Expand All @@ -85,18 +84,18 @@ jobs:
# Set up QEMU for multi-arch builds
- name: Set up QEMU
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v3.0.0

# Set up buildx for multi platform builds
- name: Set up Docker Buildx
if: steps.changed-files-specific.outputs.any_changed == 'true'
id: buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v3.3.0

# Build
- name: Test Build
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5.3.0
with:
context: .
file: ./Dockerfile
Expand All @@ -112,7 +111,7 @@ jobs:
# # Build nohealthcheck
# - name: Test Build nohealthcheck
# if: steps.changed-files-specific.outputs.any_changed == 'true'
# uses: docker/build-push-action@v5
# uses: docker/build-push-action@v5.3.0
# with:
# context: .
# file: ./Dockerfile.nohealthcheck
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- main
# only run when yaml files are updated
paths:
- '**.yml'
- "**.yml"

jobs:
yamllint:
Expand All @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v4.1.5
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
uses: ibiqlik/action-yamllint@v3.1.1
with:
config_data: |
extends: default
Expand Down

0 comments on commit 89cc5de

Please sign in to comment.