Docker-Image-Minecore-Servers/.gitea/workflows/build.yml
Radim Lipovčan f3bec70847
Some checks failed
Build Minecraft Image / Build-Minecraft-Stats-Image (push) Failing after 32s
Aktualizovat .gitea/workflows/build.yml
2024-09-25 11:00:33 +02:00

24 lines
1.2 KiB
YAML

name: Build Minecraft Image
run-name: Build Minecraft image and publish
on: [push]
jobs:
Build-Minecraft-Stats-Image:
runs-on: ubuntu-latest
steps:
- name: Prepare | Setup git
run: |
git config --global user.name "Radim Lipovčan"
git config --global user.email "radim@lipovcan.cz"
- name: Check out repository code
uses: actions/checkout@v3
- name: Build | Install Docker
run: |
apt-get update && apt-get install docker.io -y
- name: Docker | Build image and login to Docker Hub with publication
run: |
echo "${{ secrets.DOCKERHUB_GITEA_TOKEN }}" | docker login -u ownercz --password-stdin
ls -lah
docker build -t ownercz/minecraft-instance:latest -t ownercz/minecraft-instance:jdk21 -t ownercz/minecraft-instance:${{env.GITHUB_SHA}} .
docker push ownercz/minecraft-instance:latest
docker push ownercz/minecraft-instance:jdk21
docker push ownercz/minecraft-instance:${{env.GITHUB_SHA}}