-
Notifications
You must be signed in to change notification settings - Fork 68
wait for finalization #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 30 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
e71115d
wait for finalization
fbielejec 75ed49b
say no to oncurrent jobs
fbielejec 4319384
trigger, remove labels
fbielejec 3eca2eb
OK
fbielejec 3992fe2
Merge branch 'benjamin' into fix-e2e
fbielejec a01b1fd
wtf
fbielejec d8cd778
show networks
fbielejec 8841ccc
rerun
fbielejec 9e6f1ab
short lived wf
fbielejec 6a39be2
run it
fbielejec 86b52a4
need code
fbielejec 2bcced3
just use host
fbielejec 55aaaef
mhm
fbielejec c4f86a0
co tu sie
fbielejec b16e4fe
debug
fbielejec 24cd7ed
get a shell
fbielejec 2607a3d
add missing flag
fbielejec fe78a4f
aaaaaa
fbielejec b827a29
get shell
fbielejec 44a72db
show me the logs
fbielejec 3c4a3c7
docke rnet
fbielejec 52d6a89
fixit
fbielejec ed450be
off you go
fbielejec 0d767f6
yesh
fbielejec e363769
test workflow dispatch
fbielejec 47c790a
deployment triggered by tests
fbielejec b83f7af
cleanup
fbielejec 698428f
TODOs
fbielejec 5aff6c1
try the trigger
fbielejec 8d41a20
add dispatch trigger
fbielejec 7fbae16
Blend contracts e2e tests and deployment workflows into one workflow
keenbytes b1a7d6f
Oops! Remove duplicated workflow
keenbytes 6277e75
addressing comments
fbielejec 6a282a6
Add triggering indexer deployment workflow
keenbytes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,35 @@ | ||
| name: Deploy The Button game | ||
|
|
||
| # TODO triggered by the e2e-tests-contracts workflow completed on branch benjamin | ||
| on: | ||
| pull_request: | ||
| types: [labeled] | ||
| push: | ||
| branches: | ||
| - benjamin | ||
| paths: | ||
| - contracts/** | ||
|
|
||
| workflow_dispatch: | ||
| workflow_run: | ||
| workflows: | ||
| - e2e-tests-contracts | ||
| types: | ||
| - completed | ||
|
|
||
| # allow only once run instance of this workflow EVER | ||
| concurrency: | ||
| group: ${{ github.workflow }} | ||
| cancel-in-progress: true | ||
| cancel-in-progress: false | ||
|
|
||
| env: | ||
| CHECKOUT_REF: benjamin | ||
| CHECKOUT_BRANCH: benjamin | ||
| CACHE_KEY: fe-benjamin-button | ||
| CONTRACTS_ENVFILE: fe-benjamin | ||
| CARGOCONTRACT_REV: 2b1758756de59bd81e7bed5f8429d364f281cb9a | ||
| NODE_VERSION: 16 | ||
| S3BUCKET_PATH: contracts/fe-benjamin-button | ||
| LABEL_DEPLOY_CONTRACTS: '[AZERO] DEPLOY-CONTRACTS' | ||
| LABEL_DESTROYED: 'DESTROYED' | ||
| LABEL_DEPLOYED: 'DEPLOYED' | ||
| LABEL_DEPLOYED_CONTRACTS: 'DEPLOYED-CONTRACTS' | ||
|
|
||
| jobs: | ||
| checkout_benjamin: | ||
| if: (github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == '[AZERO] DEPLOY-CONTRACTS') | ||
| build_and_deploy_contracts: | ||
| runs-on: ubuntu-20.04 | ||
| #runs-on: self-hosted | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/[email protected] | ||
| with: | ||
| ref: ${{ env.CHECKOUT_REF }} | ||
| ref: ${{ env.CHECKOUT_BRANCH }} | ||
|
|
||
| - name: Check if environment is reachable | ||
| shell: bash | ||
|
|
@@ -103,15 +98,13 @@ jobs: | |
| aws-region: ${{ env.AWS_REGION }} | ||
|
|
||
| - name: Get contracts' target directories cache from S3 bucket | ||
| if: (github.event_name == 'push') || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, env.LABEL_DEPLOYED_CONTRACTS)) | ||
| shell: bash | ||
| continue-on-error: true | ||
| run: | | ||
| aws s3 cp s3://${{ secrets.CI_S3BUCKET_NAME }}/${{ env.S3BUCKET_PATH }}/targets.tgz targets.tgz | ||
| tar -xzf targets.tgz | ||
|
|
||
| - name: Copy metadata.json and addresses.json files from S3 bucket | ||
| if: (github.event_name == 'push') || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, env.LABEL_DEPLOYED_CONTRACTS)) | ||
| shell: bash | ||
| run: | | ||
| aws s3 cp s3://${{ secrets.CI_S3BUCKET_NAME }}/${{ env.S3BUCKET_PATH }}/addresses.json contracts/addresses.json | ||
|
|
@@ -186,21 +179,9 @@ jobs: | |
| -H 'Authorization: Bearer ${{ secrets.CI_GH_TOKEN }}' \ | ||
| -d '{ "ref":"main", "inputs": { "buildImage": "false", "deployImage": "true" }}' | ||
|
|
||
| - name: Add label to mark that contracts have been deployed | ||
| uses: actions-ecosystem/[email protected] | ||
| with: | ||
| labels: ${{ env.LABEL_DEPLOYED_CONTRACTS }} | ||
| github_token: ${{ secrets.CI_GH_TOKEN }} | ||
|
|
||
| - name: Remove request label if exists | ||
| if: contains(github.event.pull_request.labels.*.name, env.LABEL_DEPLOY_CONTRACTS) | ||
| uses: actions-ecosystem/[email protected] | ||
| with: | ||
| labels: ${{ env.LABEL_DEPLOY_CONTRACTS }} | ||
| github_token: ${{ secrets.CI_GH_TOKEN }} | ||
| # TODO: trigger indexer deployment | ||
|
|
||
| - name: Create empty target directory so that restore-cache does not fail | ||
| run: | | ||
| mkdir -p target | ||
| touch target/emptyfile | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
And expose this port. Also we can add (is not mandatory, as by default it is 30343)
That said this compose is technically for one node that is not communicating with anything, so pipeline will work with what is here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YMMV but this seems like a duplicated information, since port is already part of the address? ANYWAY - updated