Skip to content

Commit

Permalink
fix(ci): updates existing ci job to work with new docker publishing. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tankerkiller125 authored Jun 20, 2024
1 parent b4f7d21 commit dd1c09f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 180 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: Publish Release
name: Publish Release Binaries

on:
push:
tags:
- v*

env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
tags: [ 'v*.*.*' ]

jobs:
backend-tests:
Expand Down Expand Up @@ -49,29 +45,3 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-tag:
name: "Publish Tag"
uses: sysadminsmedia/homebox/.github/workflows/partial-publish.yaml@main
with:
release: true
tag: ${{ github.ref_name }}
secrets:
GH_TOKEN: ${{ secrets.CR_PAT }}

deploy-docs:
name: Deploy docs
needs:
- publish-tag
- goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: docs/mkdocs.yml
EXTRA_PACKAGES: build-base
15 changes: 0 additions & 15 deletions .github/workflows/docker-publish-rootless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,6 @@ jobs:
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.metadata.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# 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}

- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,6 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7
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 }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
# 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}

- name: Attest
uses: actions/attest-build-provenance@v1
Expand Down
89 changes: 0 additions & 89 deletions .github/workflows/partial-publish.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/publish.yaml

This file was deleted.

0 comments on commit dd1c09f

Please sign in to comment.