From dbf92f1d94a8ff0557fbc731673140848e94d23b Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 9 Dec 2023 13:56:06 +0000 Subject: [PATCH] push to registry --- .gitea/workflows/deploy.yaml | 39 ++++++++++++------------------------ 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index d258959..4d5ab6f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -30,9 +30,8 @@ jobs: runs-on: [ksrv01.keksdose-gaming.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: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name: Clone Repository uses: https://github.com/actions/checkout@v3 @@ -40,28 +39,16 @@ jobs: token: ${{ secrets.CI_ACCESS_TOKEN }} submodules: true - - name: Build act-runner image - run: | - docker image prune -f - chmod +x build - ./build - - on-push-deploy_area: - runs-on: [vsrv01.area49-battlefield.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: Clone Repository - uses: https://github.com/actions/checkout@v3 + - name: Login to registry git.sh-edraft.de + uses: docker/login-action@v1 with: - token: ${{ secrets.CI_ACCESS_TOKEN }} - submodules: true + registry: git.sh-edraft.de + username: ${{ secrets.CI_USERNAME }} + password: ${{ secrets.CI_ACCESS_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v2 + with: + push: true + tags: sh-edraft.de/act-runner:latest - - name: Build act-runner image - run: | - docker image prune -f - chmod +x build - ./build