Skip to content

Commit

Permalink
Merge pull request #774 from yiannistri/748-build-fix-split-jobs-rele…
Browse files Browse the repository at this point in the history
…ase-v2.9

[2.9] ci: Split image publishing from creating GH release
  • Loading branch information
yiannistri authored Dec 20, 2024
2 parents b3c0fc4 + 9db12d1 commit ee5197a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ on:
# - PUBLIC_REGISTRY_PASSWORD

jobs:
release:
publish-images:
permissions:
contents: write # required for creating GH release
id-token: write # required for reading vault secrets
contents: read
id-token: write # required for reading vault secrets and for cosign's use in ecm-distro-tools/publish-image
strategy:
matrix:
include:
Expand Down Expand Up @@ -67,6 +67,18 @@ jobs:
push-to-prime: false
- name: Cleanup checksum files # in order to avoid goreleaser dirty state error, remove once rancher/ecm-distro-tools/actions/publish-image@main gets updated
run: rm -f slsactl_*_checksums.txt*

release:
permissions:
contents: write # required for creating GH release
runs-on: ubuntu-latest
needs: publish-images
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name}}
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required for creating GH release
Expand Down

0 comments on commit ee5197a

Please sign in to comment.