All checks were successful
Minecraft Java Image / build-and-push (push) Successful in 32s
33 lines
1007 B
YAML
33 lines
1007 B
YAML
name: Minecraft Java Image
|
|
run-name: Build and Push the Minecraft Java Image
|
|
on:
|
|
push:
|
|
paths:
|
|
- Dockerfile
|
|
- IMAGE
|
|
- VERSION
|
|
- .gitea/workflows/minecraft.yaml
|
|
schedule:
|
|
- cron: '@daily'
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
if: gitea.ref == 'refs/heads/master'
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Login to Gitea Registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: gitea.reeseapps.com
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
- name: Build and push Docker image
|
|
uses: https://github.com/docker/build-push-action@v5
|
|
with:
|
|
context: ${{ gitea.workspace }}
|
|
file: ${{ gitea.workspace }}/Dockerfile
|
|
push: true
|
|
tags: "gitea.reeseapps.com/services/minecraft:latest,gitea.reeseapps.com/services/minecraft:${{gitea.sha}}"
|
|
no-cache: true
|