File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ jobs:
3838 username : ${{ secrets.DOCKERHUB_USERNAME }}
3939 password : ${{ secrets.DOCKERHUB_TOKEN }}
4040
41- - name : Build and Push Docker Image
42- run : |
43- COMMIT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
44- BRANCH=$(echo "${GITHUB_REF#refs/heads/}" | tr '/' '-')
45- TAG="${BRANCH}-${COMMIT_SHA}"
41+ # - name: Build and Push Docker Image
42+ # run: |
43+ # COMMIT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
44+ # BRANCH=$(echo "${GITHUB_REF#refs/heads/}" | tr '/' '-')
45+ # TAG="${BRANCH}-${COMMIT_SHA}"
4646
47- docker build -t $IMAGE_NAME:$TAG ./app
48- docker push $IMAGE_NAME:$TAG
47+ # docker build -t $IMAGE_NAME:$TAG ./app
48+ # docker push $IMAGE_NAME:$TAG
4949 - name : Checkout code
5050 uses : actions/checkout@v4
5151
You can’t perform that action at this time.
0 commit comments