Skip to content

Commit

Permalink
Merge pull request #16 from Nike-Inc/docker-build/add-platforms
Browse files Browse the repository at this point in the history
Add additional platforms to build
  • Loading branch information
abdulhuq811 authored Jul 6, 2023
2 parents a0f857f + e846f5d commit 92c36a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get Package Version
run: echo "VERSION=`cat pyproject.toml | grep '^version =' | awk '{gsub(/"/, "", $3); print $3; exit}'`" >> $GITHUB_ENV
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64,linux/arm64,darwin
tags: nikelab222/pterradactyl:latest,nikelab222/pterradactyl:${{ env.VERSION }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 92c36a8

Please sign in to comment.