Skip to content

Commit f265d3f

Browse files
authored
Merge pull request #1303 from Concordium/lma/SRE-1027/invoke-immutable-infrastructure-from-within-concordium-node
Release building of immutable infrastructure from the node
2 parents 2dd578f + 2ad0b7f commit f265d3f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/release.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -618,3 +618,24 @@ jobs:
618618
genesis_ref=main
619619
genesis_path=${{ matrix.node.genesis_path }}
620620
environment=${{ matrix.node.env }}
621+
notify-immutable-infrastructure:
622+
runs-on: ubuntu-latest
623+
needs: [ node-linux, validate-preconditions ]
624+
environment: release
625+
if: contains(fromJSON('["rc", "alpha"]'), needs.validate-preconditions.outputs.release_type)
626+
steps:
627+
- uses: actions/create-github-app-token@v1
628+
id: app-token
629+
with:
630+
app-id: ${{ vars.APP_ID }}
631+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
632+
owner: ${{ github.repository_owner }}
633+
repositories: |
634+
concordium-infra-images
635+
- name: Invoke immutable node release flow
636+
run: |
637+
curl -X POST --fail \
638+
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
639+
-H "Accept: application/vnd.github.v3+json" \
640+
https://api.github.com/repos/Concordium/concordium-infra-images/actions/workflows/release-node-images.yaml/dispatches \
641+
-d '{"ref":"main", "inputs":{"node_version": "${{ needs.validate-preconditions.outputs.version }}", "release_type": "${{ needs.validate-preconditions.outputs.release_type }}"}}'

0 commit comments

Comments
 (0)