Skip to content

Commit

Permalink
Merge pull request #187 from LeastAuthority/177.fix-deploy-env
Browse files Browse the repository at this point in the history
Avoid clean-install to deploy with development env!
  • Loading branch information
btlogy authored Feb 4, 2024
2 parents 035d55b + 7516ed7 commit 916d748
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
SFTP_HOSTNAME=${{ secrets.SFTP_HOSTNAME }}
SFTP_USERNAME=${{ secrets.SFTP_USERNAME }}
SFTP_IDENTITY="${{ secrets.SFTP_IDENTITY }}"
NODE_ENV=production
NODE_ENV=development
ENVIRONMENT=${{ inputs.environment }}
EOF
touch ./client-e2e/.env
Expand All @@ -66,13 +66,11 @@ jobs:
CLIENT=0 || CLIENT=1
# Build image if client is missing
test $CLIENT -eq 0 || \
docker compose --progress plain -f docker-compose.yml -f docker-compose.e2e.yml --profile e2e \
build --build-arg uid=$(id -u) --build-arg gid=${_GID} client
docker compose --progress plain build --build-arg uid=$(id -u) --build-arg gid=${_GID} client
- name: Prepare containers
run: |
docker compose build --build-arg uid="$(id -u)" --build-arg gid="$(id -g)" client
docker compose run --no-deps -e CI=true client npm clean-install
docker compose run --rm --no-deps -e CI=true client npm clean-install
- name: Deploy package
run: docker compose run --no-deps client npm run deploy
Expand Down

0 comments on commit 916d748

Please sign in to comment.