Skip to content

Commit

Permalink
fix deploy script for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jan 26, 2024
1 parent 7ea47bd commit 44a6aa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ jobs:
NGINX_IMAGE="${DOCKER_REPOSITORY_NGINX}:${SHA_TAG}" &&\
echo NGINX_IMAGE=$NGINX_IMAGE &&\
if ! git log -1 --pretty=format:"%s" | grep -- --no-deploy; then
git config --global user.name "Anyway CI" &&\
git config --global user.email "anyway-ci@localhost" &&\
if [ "${GITHUB_REF}" == "refs/heads/master" ]; then
cd `mktemp -d` &&\
echo "${DFC_IAC_DEPLOY_KEY}" > dfc_iac_deploy_key &&\
Expand All @@ -108,9 +110,7 @@ jobs:
git clone [email protected]:data-for-change/dfc-iac.git &&\
cd dfc-iac &&\
bin/update_anyway_env.py '{"image":"'${ANYWAY_IMAGE}'","dbImage":"'${DB_IMAGE}'","dbBackupImage":"'${DB_BACKUP_IMAGE}'","nginxImage":"'${NGINX_IMAGE}'"}' &&\
git config --global user.name "Anyway CI" &&\
git config --global user.email "anyway-ci@localhost" &&\
git add apps/anyway/.env && git commit -m "automatic update of anyway"
git add apps/anyway/.env && git commit -m "automatic update of anyway" &&\
git push origin main
fi &&\
cd `mktemp -d` &&\
Expand Down

0 comments on commit 44a6aa0

Please sign in to comment.