Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
devsisingh committed Jan 17, 2024
2 parents 0d9d6d8 + 6556fa9 commit 078c20a
Show file tree
Hide file tree
Showing 2 changed files with 1,874 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }}

- name: Build and Push Docker Image
# env:
# PROD_ENV_FILE: ${{ secrets.PROD_ENV_FILE }}
env:
PROD_ENV_FILE: ${{ secrets.PROD_ENV_FILE }}
run: |
# echo "$PROD_ENV_FILE" | base64 -d > .env
echo "$PROD_ENV_FILE" | base64 -d > .env
export CURRENT_BRANCH=${GITHUB_REF#refs/heads/}
export TAG=$([[ $CURRENT_BRANCH == $(basename ${{ github.ref }}) ]] && echo $CURRENT_BRANCH || echo "latest")
echo $TAG
Expand All @@ -35,7 +35,7 @@ jobs:
echo "Pushing Image to GitHub Container Registry"
docker push $GITHUB_REF_IMAGE
docker push $GITHUB_BRANCH_IMAGE
# rm -rf .env
rm -rf .env
deploy_dev:
needs: build_push
Expand Down
Loading

0 comments on commit 078c20a

Please sign in to comment.