Skip to content

Commit

Permalink
build(github-actions): update github actions steps versions
Browse files Browse the repository at this point in the history
  • Loading branch information
akosveres committed Oct 20, 2024
1 parent 9c512b5 commit 6fe32ea
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Start kind cluster
uses: helm/kind-action@v1.2.0
uses: helm/kind-action@v1
with:
version: "v0.22.0" # This starts k8s v1.29

Expand All @@ -49,20 +49,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v1
uses: actions/checkout@v4

# For multi-arch docker builds
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -73,13 +73,13 @@ jobs:
npm install
- name: Release
uses: cycjimmy/semantic-release-action@v3
uses: cycjimmy/semantic-release-action@v4
id: semantic # The `id` for output variables
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build multi-platform images
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
if: ${{ steps.semantic.outputs.new_release_version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

Expand Down Expand Up @@ -54,22 +54,22 @@ jobs:
arch: ["amd64"]
steps:
- name: Check out source code
uses: actions/checkout@v1
uses: actions/checkout@v4

# For multi-arch docker builds
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

# Docker build specifics
- name: Docker meta
id: docker_meta # you'll use this in the next step
uses: docker/metadata-action@v3
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
Expand All @@ -79,20 +79,20 @@ jobs:
type=sha
# Check Dockerfile with hadolint
- uses: hadolint/hadolint-action@v2.1.0
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile

- name: Build multi-platform images
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
platforms: ${{ matrix.arch }}
load: true
tags: ${{ steps.docker_meta.outputs.tags }}

- name: Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@0.28.0
env:
IMAGE: ${{ steps.docker_meta.outputs.tags }}
with:
Expand Down

0 comments on commit 6fe32ea

Please sign in to comment.