Skip to content

Commit

Permalink
Arm docker support (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frooodle committed Jan 31, 2023
1 parent c5dd94f commit bcc10b0
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,20 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_API }}


- name: Build and push
uses: docker/build-push-action@v3
- name: Setup buildx
run: |
docker buildx create --name mybuilder
docker buildx use mybuilder
- name: Build and push versioned amd64 and v8
if: github.ref == 'refs/heads/main'
with:
context: .
push: true
tags: |
frooodle/s-pdf:${{ steps.versionNumber.outputs.versionNumber }}
run: |
docker buildx build --platform="linux/amd64,linux/arm64/v8" --push --tag "frooodle/s-pdf:${{ steps.versionNumber.outputs.versionNumber }}" .
- name: Build and push
uses: docker/build-push-action@v3
- name: Build and push latest amd64 and v8
if: github.ref == 'refs/heads/master'
with:
context: .
push: true
tags: |
frooodle/s-pdf:latest
run: |
docker buildx build --platform="linux/amd64,linux/arm64/v8" --push --tag "frooodle/s-pdf:latest" .

0 comments on commit bcc10b0

Please sign in to comment.