From d5c590811c200c57c0dbfdeff2d0b474c6993449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20Lipov=C4=8Dan?= Date: Sun, 10 Mar 2024 17:10:51 +0100 Subject: [PATCH] =?UTF-8?q?P=C5=99idat=20.gitea/workflows/build.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..dfe0169 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build Minecraft Stats Ownercz Image +run-name: Build Minecraft Stats Ownercz 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 + #git clone https://git.lipovcan.cz/Upstream/haste-server.git haste + #- name: Build | Show repository + # run: | + # cd haste && ls -lah + - 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-stats:latest -t ownercz/minecraftstats:${{env.GITHUB_SHA}} . + docker push ownercz/minecraft-stats \ No newline at end of file