Update snap sync script to work with testnet (#37) #29
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
| name: Main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| push: | |
| name: Push Docker | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4.2.2 | |
| - name: Tags | |
| shell: bash | |
| run: | | |
| REPOSITORY_NAME="$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" | |
| BUILD_TIMESTAMP="$(date +%s)" | |
| SHORT_SHA="$(git rev-parse --short HEAD)" | |
| echo TAGS="ghcr.io/${{ github.repository }}/immutable-geth:unstable-$BUILD_TIMESTAMP-git.$SHORT_SHA" >> $GITHUB_ENV | |
| - uses: ./.github/actions/push | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| tags: ${{ env.TAGS }} |