From e48bb5bf7cf562a0010a030b6882e26d3d365784 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 9 Dec 2023 19:05:34 +0000 Subject: [PATCH] Updated build --- .gitea/workflows/deploy.yaml | 28 +++++++++++++++++++--------- build | 3 --- 2 files changed, 19 insertions(+), 12 deletions(-) delete mode 100755 build diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index b8d0aaa..78da497 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -6,12 +6,13 @@ on: - master jobs: - on-push-deploy_sh-edraft: + build: runs-on: [dobby.sh-edraft.de, ubuntu-latest] container: catthehacker/ubuntu:act-latest steps: - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 + - name: Setup docker + uses: https://github.com/papodaca/install-docker-action@main + - run: docker -v - name: Clone Repository uses: https://github.com/actions/checkout@v3 @@ -19,6 +20,19 @@ jobs: token: ${{ secrets.CI_ACCESS_TOKEN }} submodules: true + - name: Build act-runner image + run: | + docker image prune -f + docker build -t git.sh-edraft.de/sh-edraft.de/act-runner:latest . + + on-push-deploy_sh-edraft: + runs-on: [dobby.sh-edraft.de, ubuntu-latest] + container: catthehacker/ubuntu:act-latest + steps: + - name: Setup docker + uses: https://github.com/papodaca/install-docker-action@main + - run: docker -v + - name: Login to registry git.sh-edraft.de uses: https://github.com/docker/login-action@v1 with: @@ -26,9 +40,5 @@ jobs: username: ${{ secrets.CI_USERNAME }} password: ${{ secrets.CI_ACCESS_TOKEN }} - - name: Build and push - uses: https://github.com/docker/build-push-action@v2 - with: - push: true - tags: sh-edraft.de/act-runner:latest - + - name: Push image + run: docker push git.sh-edraft.de/sh-edraft.de/act-runner:latest diff --git a/build b/build deleted file mode 100755 index 1cab0a1..0000000 --- a/build +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -docker build -t sh-edraft.de/act-runner:latest . \ No newline at end of file