Skip to content

Commit

Permalink
Merge pull request #19 from mehedikhan72/playing-with-ci-cd
Browse files Browse the repository at this point in the history
updated deploy
  • Loading branch information
mehedikhan72 authored Aug 25, 2024
2 parents 0d65308 + 876ba59 commit 6260046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Build and Deploy

on:
Expand Down Expand Up @@ -70,4 +69,9 @@ jobs:
--restart always \
--name $(echo $IMAGE_NAME) \
-p 8080:8080 \
-e DB_HOST=${{ secrets.DB_HOST }} \
-e DB_USERNAME=${{ secrets.DB_USERNAME }} \
-e DB_PASSWORD=${{ secrets.DB_PASSWORD }} \
-e DB_NAME=${{ secrets.DB_NAME }} \
-e DB_PORT=${{ secrets.DB_PORT }} \
$(echo $REGISTRY)/$(echo $IMAGE_NAME):$(echo $GITHUB_SHA | head -c7)

0 comments on commit 6260046

Please sign in to comment.