Skip to content

Commit

Permalink
release building of immutable infrastructure from the ndoe
Browse files Browse the repository at this point in the history
  • Loading branch information
lassemand committed Dec 17, 2024
1 parent 2dd578f commit 745f33d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,3 +618,21 @@ jobs:
genesis_ref=main
genesis_path=${{ matrix.node.genesis_path }}
environment=${{ matrix.node.env }}
remote-git-changes:
runs-on: ubuntu-latest
needs: [ node-linux, validate-preconditions ]
if: contains(fromJSON('["rc", "alpha"]'), needs.validate-preconditions.outputs.release_type)
environment: release
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Invoke immutable node release flow
run: |
curl -X POST \
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/Concordium/concordium-infra-images/actions/workflows/release-node-images.yaml/dispatches \
-d '{"ref":"main", "inputs":{"node_version": "${{ needs.validate-preconditions.outputs.version }}", "release_type": "${{ needs.validate-preconditions.outputs.release_type }}"}}'

0 comments on commit 745f33d

Please sign in to comment.