Skip to content

Commit

Permalink
add buildx to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-gaitzsch committed Apr 30, 2024
1 parent f7bdd17 commit e484ed4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ jobs:

publish-container:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/amd64, linux/arm64]
needs: build-and-test
if: github.ref == 'refs/heads/main'
steps:
Expand All @@ -52,14 +49,14 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Build and push docker image with playground
uses: docker/build-push-action@v2
with:
platforms: ${{ matrix.platform }}
platforms: linux/amd64, linux/arm64
context: ./
tags: |
lucasgaitzsch/pdf-turtle:latest
Expand All @@ -75,7 +72,7 @@ jobs:
- name: Build and push docker image with playground and unprivileged
uses: docker/build-push-action@v2
with:
platforms: ${{ matrix.platform }}
platforms: linux/amd64, linux/arm64
file: ./Dockerfile.unprivileged
context: ./
tags: |
Expand All @@ -88,7 +85,7 @@ jobs:
- name: Build and push docker image without playground
uses: docker/build-push-action@v2
with:
platforms: ${{ matrix.platform }}
platforms: linux/amd64, linux/arm64
file: ./Dockerfile.withoutPlayground
context: ./
tags: |
Expand Down

0 comments on commit e484ed4

Please sign in to comment.