Skip to content

cssnr/stack-deploy-action: registry authentication not working for private repositories without additional configuration #2

Description

@guilhermeprokisch

For private repositories, additional registry authentication arguments are required for the --with-registry-auth flag to work properly with the stack-deploy-action.

The following registry configuration needs to be added:

- name: Docker Stack Deploy
  uses: cssnr/stack-deploy-action@v1
  with:
    name: zenfulstats
    file: docker-stack.yaml
    host: zenful.site
    user: deploy
    ssh_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
    env_file: ./envfile
    registry_auth: true
    registry_host: "ghcr.io"
    registry_user: ${{ github.actor }}  # or your specific GitHub username
    registry_pass: ${{ secrets.GITHUB_TOKEN }}  # or ${{ secrets.USER_PAT }}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions