We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4141bcf + 5f55f9e commit 5720b54Copy full SHA for 5720b54
.github/workflows/docker-image.yml
@@ -14,5 +14,15 @@ jobs:
14
15
steps:
16
- uses: actions/checkout@v4
17
+
18
+ - name: Log in to Docker Hub
19
+ uses: docker/login-action@v3
20
+ with:
21
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
22
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
23
24
- name: Build the Docker image
- run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
25
+ run: docker build . --file Dockerfile --tag ${{ vars.DOCKERHUB_IMAGE_TAG }}
26
27
+ - name: Push the Docker image
28
+ run: docker push ${{ vars.DOCKERHUB_IMAGE_TAG }}
0 commit comments