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 2afd7f7 commit 56e1461
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,11 @@ jobs:

- name: Workaround to create dockerconfigjson
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
env:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
echo "{"auths": { "${{ inputs.containerRegistry }}": { "username": "${{ secrets.REGISTRY_USERNAME }}", "password": "${{ secrets.REGISTRY_PASSWORD }}" }}}" > ./manifests/docker-config.json
echo "{"auths": { "${{ inputs.containerRegistry }}": { "username": "$REGISTRY_USERNAME", "password": "$REGISTRY_PASSWORD" }}}" > ./manifests/docker-config.json
- name: K8s create registry-token secret
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
Expand Down

0 comments on commit 56e1461

Please sign in to comment.