Skip to content

Commit

Permalink
Merge pull request #27 from 0xPolygonHermez/fea/gha
Browse files Browse the repository at this point in the history
Cherry-pick #26: Add GHA to push image on TAG
  • Loading branch information
agnusmor committed May 28, 2024
2 parents 1c60baa + 1ed6172 commit d8400e5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/push-docker-tagged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # this action will only run on tags that follow semver

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
hermeznetwork/zkevm-seqsender:${{ github.ref_name }}

0 comments on commit d8400e5

Please sign in to comment.