Skip to content

Commit

Permalink
Fixing env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
SYusupov committed Sep 17, 2024
1 parent 98ebe44 commit b36c1e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
# Clean up Docker system after building and pushing the image
- name: Clean up Docker
if: ${{ env.TO_BUILD_DOCKER == true }}
run: |
docker system prune -af --volumes
Expand Down Expand Up @@ -115,12 +116,12 @@ jobs:
run: |
DOCKERHUB_USERNAME="${{ secrets.DOCKERHUB_USERNAME }}"
if [ env.TO_BUILD_DOCKER == true ]; then
if [ $TO_BUILD_DOCKER == true ]; then
# dynamically set the image tag based on the commit ID
DOCKER_IMAGE_TAG=$(git rev-parse HEAD)
else
# Define the Docker image tag manually
DOCKER_IMAGE_TAG=env.PREV_IMAGE_TAG
DOCKER_IMAGE_TAG=$PREV_IMAGE_TAG
fi
# Write the variables to the .env file
Expand Down

0 comments on commit b36c1e8

Please sign in to comment.