From 4a64bcf7aecf9fca4061e687c95fa1be5ab5d6ab Mon Sep 17 00:00:00 2001 From: charles8191 Date: Fri, 11 Oct 2024 08:42:26 -0400 Subject: [PATCH] Fix #20 Make sure to create the tokens on git.almalinux.org: GIT_ALMALINUX_ORG_USERNAME GIT_ALMALINUX_ORG_TOKEN TEST_GIT_ALMALINUX_ORG_USERNAME TEST_GIT_ALMALINUX_ORG_TOKEN New to this repo, so edit it if there are mistakes. --- .github/workflows/build-test-push.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test-push.yml b/.github/workflows/build-test-push.yml index 99284a2..1757580 100644 --- a/.github/workflows/build-test-push.yml +++ b/.github/workflows/build-test-push.yml @@ -61,7 +61,7 @@ env: # Registries list: # for production: docker.io/almalinux, quay.io/almalinuxorg, ghcr.io/almalinux # for testing: quay.io/almalinuxautobot - registries: ${{ inputs.production && 'docker.io/almalinux, quay.io/almalinuxorg, ghcr.io/almalinux' || 'quay.io/almalinuxautobot' }} + registries: ${{ inputs.production && 'docker.io/almalinux, quay.io/almalinuxorg, ghcr.io/almalinux, git.almalinux.org/almalinux' || 'quay.io/almalinuxautobot' }} jobs: build-test-push: @@ -193,6 +193,15 @@ jobs: username: ${{ inputs.production && secrets.GIT_HUB_USERNAME || secrets.TEST_GITHUB_USERNAME }} password: ${{ inputs.production && secrets.GIT_HUB_TOKEN || secrets.TEST_GITHUB_TOKEN }} + - + name: Login to Git.AlmaLinux.org + if: contains(env.registries, 'git.almalinux.org') + uses: docker/login-action@v3 + with: + registry: git.almalinux.org + username: ${{ inputs.production && secrets.GIT_ALMALINUX_ORG_USERNAME || secrets.TEST_GIT_ALMALINUX_ORG_USERNAME }} + password: ${{ inputs.production && secrets.GIT_ALMALINUX_ORG_TOKEN || secrets.TEST_GIT_ALMALINUX_ORG_TOKEN }} + - name: Generate tags and prepare metadata to build and push id: meta