-
-
Notifications
You must be signed in to change notification settings - Fork 33
Description
URL
No response
Issue Description
I'm using this action for a personal project and it is awesome, just cuts a whole bunch of config I would need to manually set up.
But sometimes it appears that the registry_auth flag is completely ignored. I don't actually know why, I'm using it with the registry_host: ghcr.io and when I run docker service ps <service_name> on the target server, I get the message "No such image: ghcr.io/<image>…"
It's apparently a problem with the registry auth and the only way I can make it work after each deploy is to go into the server and docker service update <service_name> --with-registry-auth and wait for all the replicas to pull the updated image, which works as planned.
My yaml using this action has the following config (removing some stuff for security reasons ofc):
- name: Docker Stack Deploy
uses: cssnr/stack-deploy-action@v1
with:
name: "REDACTED"
file: "docker-stack.yaml"
host: ${{ REDACTED }}
port: ${{ REDACTED }}
user: deploy
ssh_key: ${{ REDACTED }}
env_file: "./envfile"
registry_auth: true
registry_host: ghcr.io
registry_user: ${{ github.actor }}
registry_pass: ${{ secrets.GITHUB_TOKEN }}
Log Output
"No such image: ghcr.io/<image>…"