Remove redundant REGISTRY_USERNAME secret
Some checks failed
/ build (push) Failing after 26s

This commit is contained in:
Hornwitser 2025-05-16 19:15:16 +02:00
parent 856b71e3fc
commit 2cd09fdfb3

View file

@ -17,13 +17,13 @@ jobs:
shell: sh
run: |
git config --global credential.helper store
echo "https://github:${{ secrets.GITHUB_TOKEN }}@$(echo "${{ github.server_url }}" | cut -b 9-)" > ~/.git-credentials
echo "https://runner:${{ secrets.GITHUB_TOKEN }}@$(echo "${{ github.server_url }}" | cut -b 9-)" > ~/.git-credentials
git clone --branch ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} ${{ github.workspace }}
-
name: Authenticate with registry
shell: sh
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | buildah login ${{ env.REGISTRY }} --username "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
echo "${{ secrets.REGISTRY_TOKEN }}" | buildah login ${{ env.REGISTRY }} --username runner --password-stdin
-
name: Build and push
shell: sh