Refactor Docker registry login step to use environment variables for credentials
Some checks failed
🤓 Individual Runners / Build 🐳 windows-mono (push) Failing after 1m35s

This commit is contained in:
Guillaume Langlois 2026-02-02 20:19:55 -05:00
parent 2cf28ee7cc
commit 67d15c3873

View File

@ -57,11 +57,11 @@ jobs:
time curl -v https://${{ env.DOCKER_REGISTRY_DOMAIN }}/v2/ || true time curl -v https://${{ env.DOCKER_REGISTRY_DOMAIN }}/v2/ || true
- name: Login to the Container registry - name: Login to the Container registry
uses: docker/login-action@v3 env:
with: REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
registry: ${{ env.DOCKER_REGISTRY_DOMAIN }} PIPELINES_USERNAME: ${{ secrets.PIPELINES_USERNAME }}
username: ${{ gitea.actor }} run: |
password: ${{ secrets.REGISTRY_TOKEN }} echo "${REGISTRY_TOKEN}" | docker login "${{ env.DOCKER_REGISTRY_DOMAIN }}" -u "${PIPELINES_USERNAME}" --password-stdin
- name: Get Unity Version - name: Get Unity Version
if: ${{ github.event.inputs.unity_version == '' }} if: ${{ github.event.inputs.unity_version == '' }}