From 7a8aeec3938ace38ffb6eeff33dfb2ebae30cf4d Mon Sep 17 00:00:00 2001 From: Elia el Lazkani Date: Sun, 31 Mar 2024 00:36:45 +0100 Subject: [PATCH] chore(): Fixes registry authentication --- .forgejo/workflows/build-container.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-container.yml b/.forgejo/workflows/build-container.yml index a70a3d3..4872fa1 100644 --- a/.forgejo/workflows/build-container.yml +++ b/.forgejo/workflows/build-container.yml @@ -20,13 +20,19 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Login to Forgejo Container Registry + uses: docker/login-action@v3 + with: + registry: scm.project42.io + username: ${{ github.repository_owner }} + password: ${{ secrets.REPOSITORY_SECRET }} + - name: Build and push uses: docker/build-push-action@v5 with: context: . platforms: linux/arm64 push: true - github_token: ${{ secrets.REPOSITORY_SECRET }} tags: | scm.project42.io/elia/ansible-actions-container:latest scm.project42.io/elia/ansible-actions-container:python-3.12.2