Skip to content

Commit

Permalink
add versioning for all images
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Mar 26, 2023
1 parent bcbdb94 commit e41706b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 26 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/docker-releas-fetch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:


jobs:
prepare:
build-and-push:

runs-on: ubuntu-latest
permissions:
Expand All @@ -40,9 +40,9 @@ jobs:

# 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@main
# - name: Install cosign
# if: github.event_name != 'pull_request'
# uses: sigstore/cosign-installer@main

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -63,8 +63,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}



# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
Expand All @@ -90,10 +88,10 @@ jobs:
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: cosign sign --yes ${{ steps.fetch-meta.outputs.tags }}@${{ steps.fetch-build-and-push.outputs.digest }}
# - name: Sign the published Docker image
# if: ${{ github.event_name != 'pull_request' }}
# env:
# COSIGN_EXPERIMENTAL: "true"
# # This step uses the identity token to provision an ephemeral certificate
# # against the sigstore community Fulcio instance.
# run: cosign sign --yes ${{ steps.fetch-meta.outputs.tags }}@${{ steps.fetch-build-and-push.outputs.digest }}
24 changes: 11 additions & 13 deletions .github/workflows/docker-releas-php.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:


jobs:
prepare:
build-and-push:

runs-on: ubuntu-latest
permissions:
Expand All @@ -40,9 +40,9 @@ jobs:

# 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@main
# - name: Install cosign
# if: github.event_name != 'pull_request'
# uses: sigstore/cosign-installer@main

# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
Expand All @@ -58,8 +58,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}



# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
Expand All @@ -84,10 +82,10 @@ jobs:
# repository is public to avoid leaking data. If you would like to publish
# transparency data even for private images, pass --force to cosign below.
# https://github.com/sigstore/cosign
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
COSIGN_EXPERIMENTAL: "true"
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: cosign sign --yes ${{ steps.fetch-meta.outputs.tags }}@${{ steps.fetch-build-and-push.outputs.digest }}
# - name: Sign the published Docker image
# if: ${{ github.event_name != 'pull_request' }}
# env:
# COSIGN_EXPERIMENTAL: "true"
# # This step uses the identity token to provision an ephemeral certificate
# # against the sigstore community Fulcio instance.
# run: cosign sign --yes ${{ steps.fetch-meta.outputs.tags }}@${{ steps.fetch-build-and-push.outputs.digest }}

0 comments on commit e41706b

Please sign in to comment.