Skip to content

Commit

Permalink
Update Docker actions versions in build workflow
Browse files Browse the repository at this point in the history
Update the versions of actions/checkout, docker/setup-buildx-action, and
docker/login-action in the build workflow to v4, v3, and v3 respectively.
Also, update sigstore/cosign-installer to version v3.
  • Loading branch information
obeone committed Mar 18, 2024
1 parent 4d43261 commit 4814d75
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -34,8 +34,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to GHCR and Docker Hub
id: build-and-push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand All @@ -48,7 +47,7 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/i386,linux/armhf

- name: Set up cosign
uses: sigstore/cosign-installer@main
uses: sigstore/cosign-installer@v3

- name: Sign the container image with cosign
run: |
Expand All @@ -57,3 +56,4 @@ jobs:
env:
COSIGN_EXPERIMENTAL: true
DIGEST: ${{ steps.build-and-push.outputs.digest }}

0 comments on commit 4814d75

Please sign in to comment.