Skip to content

Commit

Permalink
fix: docker login with environment vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 12, 2022
1 parent 3a8af79 commit 2fa3861
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,9 @@ jobs:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
echo "{"auths": { "${{ inputs.containerRegistry }}": { "username": "$REGISTRY_USERNAME", "password": "$REGISTRY_PASSWORD" }}}" > ./manifests/docker-config.json
echo "{"auths": { "${{ inputs.containerRegistry }}": { "username": "${REGISTRY_USERNAME}", "password": "${REGISTRY_PASSWORD}" }}}" > ./manifests/docker-config.json
cat ./manifests/docker-config.json
echo "username=${REGISTRY_USERNAME"}
- name: K8s create registry-token secret
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
Expand Down

0 comments on commit 2fa3861

Please sign in to comment.