This repository has been archived on 2026-05-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
minecraft-server-ironveil/.gitea/workflows/publish.yml
T
2026-02-10 21:12:14 +01:00

30 lines
698 B
YAML

name: Build and Publish Docker Image
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/ironveil:${{ github.ref_name }}