Skip to content

Commit e12a318

Browse files
committed
fix: address small comments
1 parent 440b3cf commit e12a318

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/docker.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ on:
33
schedule:
44
- cron: "0 1 * * *" # Every day at 1:00 AM
55
workflow_dispatch: # Run the action manually
6+
pull_request: # TODO: remove before merging
67
permissions:
78
contents: read
89
issues: write
910
jobs:
1011
push:
1112
runs-on: ubuntu-latest
12-
env:
13-
IMAGE_REPOSITORY: docker.io/mongodb/mongodb-mcp-server
1413
steps:
1514
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
1615
with:
@@ -23,8 +22,8 @@ jobs:
2322
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
2423
with:
2524
username: "${{ secrets.DOCKERHUB_USERNAME }}"
26-
password: "${{ secrets.DOCKERHUB_SECRET }}"
27-
- name: Set properties
25+
password: "${{ secrets.DOCKERHUB_PASSWORD }}"
26+
- name: Set date and version
2827
id: set-properties
2928
run: |
3029
DATE=$(date +'%Y-%m-%d')
@@ -36,7 +35,7 @@ jobs:
3635
with:
3736
context: .
3837
platforms: linux/amd64,linux/arm64
39-
tags: ${{ env.IMAGE_REPOSITORY }}:latest, ${{ env.IMAGE_REPOSITORY }}:${{ steps.set-properties.outputs.VERSION }}, ${{ env.IMAGE_REPOSITORY }}:${{ steps.set-properties.outputs.VERSION }}-${{ steps.set-properties.outputs.DATE }}
38+
tags: ${{ vars.DOCKERHUB_IMAGE_REPOSITORY }}:latest, ${{ vars.DOCKERHUB_IMAGE_REPOSITORY }}:${{ steps.set-properties.outputs.VERSION }}, ${{ vars.DOCKERHUB_IMAGE_REPOSITORY }}:${{ steps.set-properties.outputs.VERSION }}-${{ steps.set-properties.outputs.DATE }}
4039
file: Dockerfile
4140
push: true
4241
build-args: |

0 commit comments

Comments
 (0)