Skip to content

Commit

Permalink
build docker
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Feb 23, 2024
1 parent a35a8b0 commit bb16c74
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
on:
push:
branches:
- main
- '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@v2
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

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

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

- name: Login to DockerHub
uses: docker/login-action@v1
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@v2
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
tags: |
hermeznetwork/zkevm-bridge-service
hermeznetwork/zkevm-bridge-service:2.0
hermeznetwork/zkevm-bridge-service::${{ github.ref_name }}
build-args: |
PRIVATE_TOKEN=${{secrets.GIT_TOKEN}}

0 comments on commit bb16c74

Please sign in to comment.