Skip to content

Commit

Permalink
Support both amd/arm + bump actions (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
alrevuelta authored Jun 10, 2024
1 parent b853233 commit 35ee713
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions .github/workflows/push_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,32 @@ on:
jobs:
docker:
runs-on: ubuntu-latest

steps:
- id: commit
uses: pr-mpt/actions-commit-hash@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: alrevuelta/go-waku-light:${{ steps.commit.outputs.short }}
- id: commit
uses: pr-mpt/actions-commit-hash@v2

- name: Checkout repository
uses: actions/checkout@v4

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

- 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 multi-architecture image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: alrevuelta/go-waku-light:${{ steps.commit.outputs.short }}

0 comments on commit 35ee713

Please sign in to comment.