Skip to content

Commit

Permalink
fix: docker login bug cannot show correct user token
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed May 12, 2022
1 parent c28fc05 commit 245a99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/service-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -626,10 +626,10 @@ jobs:
# sudo chown $(whoami):docker /home/$(whoami)/.docker/config.json
# cp /home/$(whoami)/.docker/config.json ./manifests/docker-config.json

- name: Config | Gives runner access to docker config file
- name: Workaround to create dockerconfigjson
if: steps.deploy_setup.outputs.deploy_as_k8s == 'true'
run: |
echo "{"auths": {"${{ inputs.containerRegistry }}": {"username": "${{ secrets.REGISTRY_USERNAME }}","password": "${{ secrets.REGISTRY_PASSWORD }}"}}}" > ./manifests/docker-config.json
echo "{"auths": { "${{ inputs.containerRegistry }}": { "username": "${{ secrets.REGISTRY_USERNAME }}", "password": "${{ secrets.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 245a99c

Please sign in to comment.