Skip to content

Commit 7501e13

Browse files
committed
hash fix
1 parent 8d3ae88 commit 7501e13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/Docker-Image-Build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Image-Container-Build
1+
name: docker-containers-to-build-docker-image
22

33
on:
44
push:
@@ -54,12 +54,12 @@ jobs:
5454
echo "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${{ secrets.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY }}" >> .env
5555
5656
- name: Set Docker Image Tag
57-
run: echo "IMAGE_TAG=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
57+
id: image_tag
58+
run: echo "IMAGE_TAG=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_OUTPUT
5859

5960
- name: Build Docker Image
6061
run: |
61-
docker build --no-cache . --tag ghcr.io/aknibircse/rupantor-ai-saas:${{ env.IMAGE_TAG }}
62+
docker build --no-cache . --tag ghcr.io/aknibircse/rupantor-ai-saas:${{ steps.image_tag.outputs.IMAGE_TAG }}
6263
6364
- name: Push Docker Image To Registry
64-
run: docker push ghcr.io/aknibircse/rupantor-ai-saas:${{ env.IMAGE_TAG }}
65-
65+
run: docker push ghcr.io/aknibircse/rupantor-ai-saas:${{ steps.image_tag.outputs.IMAGE_TAG }}

0 commit comments

Comments
 (0)