Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-koshchei committed Oct 18, 2024
1 parent bc74776 commit d8f1b3d
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Release Docker Image

on:
push:
branches: [main]
release:
types: [published]

Expand All @@ -18,20 +16,11 @@ jobs:
permissions:
contents: read
packages: write
# This is used to complete the identity challenge
# with sigstore/fulcio when running outside of PRs.
# id-token: write

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

# - name: Install cosign
# if: github.event_name != 'pull_request'
# uses: sigstore/cosign-installer@v3
# with:
# cosign-release: "v2.2.4"

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

Expand All @@ -54,22 +43,8 @@ jobs:
with:
context: .
file: ./src/Api/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Sign the resulting Docker image digest except on PRs.
# This will only write to the public Rekor transparency log when the Docker
# 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:
# # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
# TAGS: ${{ steps.meta.outputs.tags }}
# # 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 d8f1b3d

Please sign in to comment.