-
Notifications
You must be signed in to change notification settings - Fork 1
Enable Docker Hub credentials in CI pack workflow #415
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
base: main
Are you sure you want to change the base?
Changes from all commits
4cf5799
da654c2
e89b403
a9f6262
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| name: CI | ||
|
|
||
| on: push | ||
| on: | ||
| push: | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| DATABASE_PASSWORD: passwordless | ||
|
|
@@ -87,6 +89,11 @@ jobs: | |
|
|
||
| - name: Pack and Upload | ||
| uses: ./.github/actions/pack | ||
| with: | ||
| push_image: ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }} | ||
| enable_dockerhub: "true" | ||
| dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
Comment on lines
+94
to
+96
|
||
| env: | ||
| RELEASE_APP_ID: ${{ secrets.RELEASE_APP_ID }} | ||
| RELEASE_APP_PEM: ${{ secrets.RELEASE_APP_PEM }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ci.ymlruns on everypush, and enabling Docker Hub publishing unconditionally here will publish branch/CI tags todocker.io(the docker-metadata action generates multiple branch-derived tags). If the intent is “during the release process” only, gate Docker Hub publishing to tags and/or the default branch (e.g., via a job/stepif:or by makingenable_dockerhubconditional ongithub.ref_type/is_default_branch).