Skip to content

Commit

Permalink
ci: update Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tippfehlr committed Mar 25, 2024
1 parent 30944db commit 396e008
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ name: Docker build & push to ghcr.io

on:
push:
branches: ["main"]
branches: ['main']
# Publish semver tags as releases.
tags: ["v*.*.*"]
tags: ['v*.*.*']
pull_request:
branches: ["main"]
branches: ['main']

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -31,15 +31,13 @@ jobs:

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

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
with:
cosign-release: "v2.1.1"
uses: sigstore/[email protected]

# Set up BuildKit Docker container builder to be able to build
# multi-platform images and export cache
Expand Down Expand Up @@ -97,4 +95,3 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

0 comments on commit 396e008

Please sign in to comment.