File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ jobs:
1818 username : ${{ secrets.DOCKERHUB_USERNAME }}
1919 password : ${{ secrets.DOCKERHUB_TOKEN }}
2020
21- - name : Build Docker image
21+ - name : Build Docker images
2222 run : |
23- IMAGE_NAME =${{ secrets.DOCKERHUB_USERNAME }}/myhello:${{ github.sha }}
24- docker build -t $IMAGE_NAME .
25-
26- - name : Push Docker image
23+ IMAGE_BASE =${{ secrets.DOCKERHUB_USERNAME }}/myhello
24+ docker build -t $IMAGE_BASE:latest -t $IMAGE_BASE:${{ github.sha }} .
25+
26+ - name : Push Docker images
2727 run : |
28- IMAGE_NAME=${{ secrets.DOCKERHUB_USERNAME }}/myhello:${{ github.sha }}
29- docker push $IMAGE_NAME
28+ IMAGE_BASE=${{ secrets.DOCKERHUB_USERNAME }}/myhello
29+ docker push $IMAGE_BASE:latest
30+ docker push $IMAGE_BASE:${{ github.sha }}
You can’t perform that action at this time.
0 commit comments