File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
steps :
24
24
- uses : actions/checkout@v4
25
+
25
26
- name : Use Node.js ${{ matrix.node-version }}
26
27
uses : actions/setup-node@v4
27
28
with :
52
53
echo "NEXT_PUBLIC_STRIPE_WEBHOOK_SECRET=${{ secrets.NEXT_PUBLIC_STRIPE_WEBHOOK_SECRET }}" >> .env
53
54
echo "NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${{ secrets.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY }}" >> .env
54
55
56
+ - name : Set Docker Image Tag
57
+ run : echo "IMAGE_TAG=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
58
+
55
59
- name : Build Docker Image
56
60
run : |
57
- docker build --no-cache . --tag ghcr.io/aknibircse/rupantor-ai-saas:latest
61
+ docker build --no-cache . --tag ghcr.io/aknibircse/rupantor-ai-saas:${{ env.IMAGE_TAG }}
58
62
59
63
- name : Push Docker Image To Registry
60
- run : docker push ghcr.io/aknibircse/rupantor-ai-saas:latest
64
+ run : docker push ghcr.io/aknibircse/rupantor-ai-saas:${{ env.IMAGE_TAG }}
65
+
You can’t perform that action at this time.
0 commit comments