Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
charles8191 authored Oct 11, 2024
1 parent 3fb5a06 commit 4a64bcf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-test-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a64bcf

Please sign in to comment.