Skip to content

Commit

Permalink
Nightly release job workflow path fix
Browse files Browse the repository at this point in the history
Signed-off-by: Danil-Grigorev <[email protected]>
  • Loading branch information
Danil-Grigorev committed Dec 17, 2024
1 parent 1f0517e commit 0a17547
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/nightly-test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
password: GITHUB_TOKEN
image: GHCR_IMAGE
secret_registry: false
uses: ./.github/workflows/release-workflow.yml
uses: ./.github/workflows/release.yml
with:
password: ${{ matrix.password }}
username: ${{ matrix.username }}
Expand All @@ -56,9 +56,33 @@ jobs:
secret_registry: ${{ matrix.secret_registry }}
secrets: inherit

sign:
runs-on: ubuntu-latest
needs: [build-push-services]
permissions:
actions: read
id-token: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.tag }}
- name: Sign image with cosign
uses: ./.github/workflows/release_sign
with:
image: ${{ vars[inputs.image] }}
digest: ${{ needs.build.outputs.digest }}
identity: https://github.com/${{ inputs.org }}/turtles/.github/workflows/nightly-test-release.yml@${{ github.ref }}
oids-issuer: https://token.actions.githubusercontent.com
registry: ${{ inputs.secret_registry && secrets[inputs.registry] || inputs.registry }}
username: ${{ inputs.secret_registry && secrets[inputs.username] || inputs.username }}
password: ${{ secrets[inputs.password] }}

release:
name: Create helm release
needs: [build-push-services]
needs: [sign]
runs-on: ubuntu-latest
env:
PROD_REGISTRY: ${{ secrets.REGISTRY_ENDPOINT }}
Expand Down

0 comments on commit 0a17547

Please sign in to comment.