Keep secrets out of the release matrix, where Actions rejects them
CI / check (push) Canceled after 0s

This commit is contained in:
2026-10-22 13:58:59 +01:00
parent e45aa4162a
commit 38221c4baa
+12 -7
View File
@@ -24,12 +24,8 @@ jobs:
matrix: matrix:
include: include:
- registry: ghcr.io - registry: ghcr.io
login_username: ${{ github.actor }}
login_password: ${{ secrets.GITHUB_TOKEN }}
soft: "false" soft: "false"
- registry: git.tben.me - registry: git.tben.me
login_username: ${{ secrets.GITEA_USERNAME }}
login_password: ${{ secrets.GITEA_TOKEN }}
soft: "true" soft: "true"
continue-on-error: ${{ matrix.soft }} continue-on-error: ${{ matrix.soft }}
steps: steps:
@@ -39,12 +35,21 @@ jobs:
- uses: docker/setup-buildx-action@v3 - uses: docker/setup-buildx-action@v3
- name: Log in to ${{ matrix.registry }} - name: Log in to GHCR
if: matrix.registry == 'ghcr.io'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ matrix.registry }} registry: ${{ matrix.registry }}
username: ${{ matrix.login_username }} username: ${{ github.actor }}
password: ${{ matrix.login_password }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Gitea
if: matrix.registry == 'git.tben.me'
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry }}
username: ${{ secrets.GITEA_USERNAME }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Work out image tags - name: Work out image tags
id: tags id: tags