Skip to content

Commit

Permalink
Use buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrelefevre committed Mar 3, 2024
1 parent 4fea0f9 commit 40ead5a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/hub-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ name: docker hub api
branches:
- main
paths:
- 'api/**'
- 'models/**'
- "api/**"
- "models/**"
- ".github/workflows/hub-api.yml"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/hub-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ name: docker hub frontend
branches:
- main
paths:
- 'frontend/**'
- "frontend/**"
- ".github/workflows/hub-frontend.yml"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -22,4 +28,3 @@ jobs:
tags: pierrelf/hempriser:frontend
file: frontend/Dockerfile
platforms: linux/amd64,linux/arm64

0 comments on commit 40ead5a

Please sign in to comment.