From f7065b18355c77679cfe492d5555f9aa44e4db1d Mon Sep 17 00:00:00 2001 From: 57_Wolve <57_wolve@private.email> Date: Wed, 24 Jul 2024 09:12:45 +0000 Subject: [PATCH] Update .gitea/workflows/container-build.yml --- .gitea/workflows/container-build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/container-build.yml b/.gitea/workflows/container-build.yml index 64244f8..0823e3b 100644 --- a/.gitea/workflows/container-build.yml +++ b/.gitea/workflows/container-build.yml @@ -9,24 +9,30 @@ on: - operating-systems/** jobs: push: - name: "container:${{ matrix.operating-systems }}" + name: "Build Container Image: container:${{ matrix.operating-systems }}" runs-on: ubuntu-latest strategy: fail-fast: false matrix: operating-systems: - debian + env: + IMAGE_NAME: container + REGISTRY: git.anomalous.dev + REPO_OWNER: 57_wolve steps: - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v1 - uses: docker/setup-buildx-action@v1 with: version: "v0.5.1" buildkitd-flags: --debug - - uses: docker/login-action@v1 + - name: Login to Docker Hub + uses: docker/login-action@v3 with: - registry: git.anomalous.dev - username: ${{ gitea.repository_owner }} + registry: ${REGISTRY} + username: ${{ gitea.actor }} password: ${{ secrets.REGISTRY_TOKEN }} - uses: docker/build-push-action@v2 with: @@ -35,4 +41,4 @@ jobs: platforms: linux/amd64 push: true tags: | - git.anomalous.dev/57_Wolve/container:${{ matrix.operating-systems }} \ No newline at end of file + ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:${{ matrix.operating-systems }} \ No newline at end of file