Skip to content

Merge pull request #183 from fariskazmi/patch-1 #53

Merge pull request #183 from fariskazmi/patch-1

Merge pull request #183 from fariskazmi/patch-1 #53

Workflow file for this run

name: Build Vanilla
on:
push:
tags:
- vanilla-*
workflow_dispatch:
jobs:
build-vanilla:
name: build vanilla
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v6
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
ryshe/terraria:${{ steps.get_version.outputs.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max