From f420e5cc97e38222b57c126a59c1afeb7d43aed8 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Thu, 31 Oct 2024 08:28:48 +0100 Subject: [PATCH] Auth to registry --- .forgejo/workflows/build_deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build_deploy.yaml b/.forgejo/workflows/build_deploy.yaml index 1e6eb06..3c93ad7 100644 --- a/.forgejo/workflows/build_deploy.yaml +++ b/.forgejo/workflows/build_deploy.yaml @@ -6,12 +6,14 @@ on: - main env: - LATEST_IMAGE: ${{ github.server_url }}/${{ github.repository }}:latest + REGISTRY: git.unjx.de + LATEST_IMAGE: ${{ env.REGISTRY }}/${{ github.repository }}:latest jobs: build: runs-on: self-hosted steps: + - run: echo $${{ github.token }} | docker login --username flohoss --password-stdin ${{ env.REGISTRY }} - run: | docker build \ --build-arg V_GOLANG=${{ vars.V_GOLANG }} \