File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1313 runs-on : ubuntu-latest
1414
1515 steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
1619 - name : Log in to Docker Hub
1720 uses : docker/login-action@v3
1821 with :
@@ -32,10 +35,10 @@ jobs:
3235 - name : Build and push
3336 uses : docker/build-push-action@v6
3437 with :
38+ context : .
3539 platforms : linux/amd64,linux/arm64
3640 sbom : true
3741 push : true
38- tags : ${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ steps.date.outputs.date }}
39-
40- - name : Push the Docker image with latest tag
41- run : docker tag ${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ steps.date.outputs.date }} ${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest && docker push ${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest
42+ tags : |
43+ ${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ steps.date.outputs.date }}
44+ ${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest
You can’t perform that action at this time.
0 commit comments