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 14ecd30 commit f7bdd17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ 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 @@ -49,10 +52,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 }}
context: ./
tags: |
lucasgaitzsch/pdf-turtle:latest
Expand All @@ -68,6 +75,7 @@ jobs:
- name: Build and push docker image with playground and unprivileged
uses: docker/build-push-action@v2
with:
platforms: ${{ matrix.platform }}
file: ./Dockerfile.unprivileged
context: ./
tags: |
Expand All @@ -80,6 +88,7 @@ jobs:
- name: Build and push docker image without playground
uses: docker/build-push-action@v2
with:
platforms: ${{ matrix.platform }}
file: ./Dockerfile.withoutPlayground
context: ./
tags: |
Expand Down

0 comments on commit f7bdd17

Please sign in to comment.