Skip to content

Commit

Permalink
Merge pull request #1303 from Concordium/lma/SRE-1027/invoke-immutabl…
Browse files Browse the repository at this point in the history
…e-infrastructure-from-within-concordium-node

Release building of immutable infrastructure from the node
  • Loading branch information
lassemand authored Dec 18, 2024
2 parents 2dd578f + 2ad0b7f commit f265d3f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,3 +618,24 @@ jobs:
genesis_ref=main
genesis_path=${{ matrix.node.genesis_path }}
environment=${{ matrix.node.env }}
notify-immutable-infrastructure:
runs-on: ubuntu-latest
needs: [ node-linux, validate-preconditions ]
environment: release
if: contains(fromJSON('["rc", "alpha"]'), needs.validate-preconditions.outputs.release_type)
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: |
concordium-infra-images
- name: Invoke immutable node release flow
run: |
curl -X POST --fail \
-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 f265d3f

Please sign in to comment.