Skip to content

Commit

Permalink
Trigger Sync Testnets only when Publish Docker image for master is co…
Browse files Browse the repository at this point in the history
…mpleted (#6282)
  • Loading branch information
kamilchodola authored Nov 21, 2023
1 parent 03796d9 commit f009be9
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/sync-testnets.yml
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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f009be9

Please sign in to comment.