-
Notifications
You must be signed in to change notification settings - Fork 134
Docker #44
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 #44
Changes from all commits
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 | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,33 @@ | |||||||||||||||||
| name: Publish Docker image | |||||||||||||||||
|
|
|||||||||||||||||
| on: | |||||||||||||||||
| release: | |||||||||||||||||
| types: [created] | |||||||||||||||||
|
|
|||||||||||||||||
| jobs: | |||||||||||||||||
| push_to_registry: | |||||||||||||||||
| name: Build and push Docker image to Docker Hub | |||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||
| steps: | |||||||||||||||||
| - name: Check out the repo | |||||||||||||||||
| uses: actions/checkout@v4 | |||||||||||||||||
|
|
|||||||||||||||||
| - name: Log in to Docker Hub | |||||||||||||||||
| uses: docker/login-action@v3 | |||||||||||||||||
| with: | |||||||||||||||||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | |||||||||||||||||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |||||||||||||||||
|
|
|||||||||||||||||
| - name: Extract metadata (tags, labels) for Docker | |||||||||||||||||
| id: meta | |||||||||||||||||
| uses: docker/metadata-action@v5 | |||||||||||||||||
|
|
|||||||||||||||||
| with: | |||||||||||||||||
| images: falkordb/queryweaver | |||||||||||||||||
|
|
|||||||||||||||||
| - name: Build and push Docker image | |||||||||||||||||
| uses: docker/build-push-action@v5 | |||||||||||||||||
|
|
|||||||||||||||||
| with: | |||||||||||||||||
| context: . | |||||||||||||||||
| push: true | |||||||||||||||||
| tags: ${{ steps.meta.outputs.tags }} | |||||||||||||||||
| labels: ${{ steps.meta.outputs.labels }} | |||||||||||||||||
|
Comment on lines
+9
to
+33
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI about 1 year ago To fix the problem, add a
Suggested changeset
1
.github/workflows/publish-docker.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium