Skip to content

Commit

Permalink
This isn't really Docker specific
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Feb 18, 2024
1 parent 279c054 commit bac6866
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker image publication
name: Image publication

on:
workflow_call
Expand All @@ -9,7 +9,7 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
publish-docker-image:
publish-image:

runs-on: ubuntu-latest
permissions:
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Install cosign
uses: sigstore/cosign-installer@v3

- name: Setup Docker buildx
- name: Setup buildx
uses: docker/setup-buildx-action@v3

- name: Log into registry ${{ env.REGISTRY }}'
Expand All @@ -34,13 +34,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Metadata action
- name: Image metadata action
uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
- name: Build and push image
id: build-and-push
uses: docker/build-push-action@v5
with:
Expand All @@ -52,7 +52,7 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Sign the published Docker image
- name: Sign the published image
env:
COSIGN_EXPERIMENTAL: "true"
run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign --tlog-upload=false {}@${{ steps.build-and-push.outputs.digest }}

0 comments on commit bac6866

Please sign in to comment.