Skip to content

Commit

Permalink
Merge pull request #56 from dragoneena12/multi-arch-image-publish
Browse files Browse the repository at this point in the history
Multi arch image publish
  • Loading branch information
ryansheehan authored Oct 20, 2020
2 parents f7818a0 + bc17437 commit 09c925c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/build-tshock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Publish TShock
uses: elgohr/Publish-Docker-Github-Action@master
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
name: ryshe/terraria
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: tshock/Dockerfile
tags: "tshock-latest"
tag_names: true
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./tshock
file: tshock/Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le
push: true
tags: |
ryshe/terraria:tshock-latest
21 changes: 15 additions & 6 deletions .github/workflows/build-vanilla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Publish TShock
uses: elgohr/Publish-Docker-Github-Action@master
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
name: ryshe/terraria
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: vanilla/Dockerfile
tags: "vanilla-latest"
tag_names: true
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./vanilla
file: vanilla/Dockerfile
platforms: linux/386,linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le
push: true
tags: |
ryshe/terraria:vanilla-latest

0 comments on commit 09c925c

Please sign in to comment.