Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker.yml Dockerhub Integration #3404

Open
Sweetdevil144 opened this issue Dec 30, 2024 · 5 comments · May be fixed by #3405
Open

docker.yml Dockerhub Integration #3404

Sweetdevil144 opened this issue Dec 30, 2024 · 5 comments · May be fixed by #3405

Comments

@Sweetdevil144
Copy link
Contributor

Sweetdevil144 commented Dec 30, 2024

Description

Is your feature request related to a problem? Please describe.
Current Workflow gives me an error Error: Username and password required while trying to Login into DockerHub.

Proposed Solution

Maybe we can enhance this by providing user an option to use their DOCKER_USERNAME or DOCKER_PASSWORD from secrets. Maybe further additions as below :

jobs:
  docker_login:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v3
      - name: Log in to Docker
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}
@Sweetdevil144
Copy link
Contributor Author

@allgandalf @infotroph any recommendations?

@allgandalf
Copy link
Collaborator

allgandalf commented Dec 30, 2024

how would this help for forked repos?

the problem is the secrets only exist within the main repo, and forked repos do not have access to these secrets.

So how will this change help us? or did i misunderstand this issue?

@Sweetdevil144
Copy link
Contributor Author

Then maybe restrict the access here as well to pecanProject/pecan only?

@allgandalf
Copy link
Collaborator

yea, that would be the best way forward actually

@Sweetdevil144
Copy link
Contributor Author

I'll reference these changes in #3405

@Sweetdevil144 Sweetdevil144 linked a pull request Jan 11, 2025 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants