-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trigger Sync Testnets only when Publish Docker image for master is co…
…mpleted (#6282)
- Loading branch information
1 parent
03796d9
commit f009be9
Showing
1 changed file
with
5 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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,8 +1,11 @@ | ||
name: Sync Testnets | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
workflow_run: | ||
workflows: ["Publish Docker image"] | ||
branches: ["master"] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
env: | ||
|
@@ -52,18 +55,6 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install -y make build-essential jq screen lshw dmidecode fio | ||
- name: Install Docker | ||
run: | | ||
sudo apt update | ||
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
sudo apt update | ||
sudo apt install docker-ce -y | ||
- name: Build docker image | ||
run: docker buildx build --platform=linux/amd64 -t current_branch_image -f Dockerfile --build-arg COMMIT_HASH=${{ steps.settings.outputs.COMMIT_HASH }} --build-arg BUILD_TIMESTAMP=${{ steps.settings.outputs.BUILD_TIMESTAMP}} --load . | ||
|
||
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
|