Skip to content

Commit

Permalink
Merge pull request #59 from fermyon/fix-devcontainer-cosign
Browse files Browse the repository at this point in the history
remove the devcontainer cosign task
  • Loading branch information
jpflueger authored Mar 14, 2024
2 parents 8740af9 + 00e2864 commit 7b9b560
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ jobs:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/[email protected]
uses: actions/checkout@v4

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

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
Expand All @@ -55,9 +47,8 @@ jobs:
type=ref,event=pr
type=sha,enable={{is_default_branch}},prefix={{date 'YYYYMMDD-HHmmss'}}-,suffix=,format=short
# Uses the cached prebuilt image and adds
# devcontainer features and metadata before pushing
- name: Add devcontainer extras and push
# this action will take features and extensions into account
- name: Build and Push devcontainer
uses: devcontainers/[email protected]
with:
cacheFrom: ghcr.io/${{ github.repository }}
Expand All @@ -66,11 +57,3 @@ jobs:
skipContainerUserIdUpdate: true
platform: linux/amd64,linux/arm64
runCmd: spin --version

# Sign the resulting Docker image digest except on PRs.
- name: Sign the published Docker image
if: ${{ github.event_name != 'pull_request' }}
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

0 comments on commit 7b9b560

Please sign in to comment.