Skip to content

Merge pull request #161 from loganintech/master #44

Merge pull request #161 from loganintech/master

Merge pull request #161 from loganintech/master #44

Workflow file for this run

name: Build TShock
on:
push:
tags:
- tshock-*
workflow_dispatch:
jobs:
build-tshock:
name: build tshock
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./tshock
file: tshock/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ryshe/terraria:latest
ryshe/terraria:tshock-latest
ryshe/terraria:${{ steps.get_version.outputs.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max