Skip to content

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

@guilhermeprokisch

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 }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions