File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 ci :
66 runs-on : ubuntu-latest
77 steps :
8- - uses : actions/setup-python@v6
9- with :
10- python-version : ' 2'
118 - uses : actions/checkout@v2
129 - env :
1310 DOCKER_APP_IMAGE_NAME : " ghcr.io/hasadna/open-knesset-backend/open-knesset-backend"
@@ -26,14 +23,15 @@ jobs:
2623 if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
2724 docker tag app "${DOCKER_APP_IMAGE_NAME}:latest" &&\
2825 docker push "${DOCKER_APP_IMAGE_NAME}:latest" &&\
26+ apt install -y python3-yaml &&\
2927 if ! git log -1 --pretty=format:"%s" | grep -- --no-deploy; then
3028 cd `mktemp -d` &&\
3129 echo "${DEPLOY_KEY}" > deploy_key &&\
3230 chmod 400 deploy_key &&\
3331 export GIT_SSH_COMMAND="ssh -i `pwd`/deploy_key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" &&\
3432 git clone git@github.com:OriHoch/knesset-data-k8s.git &&\
3533 cd knesset-data-k8s &&\
36- python update_yaml.py '{"backendImage":"'"${DOCKER_APP_IMAGE_NAME}:${GITHUB_SHA}"'"}' apps/site/values-auto-updated.yaml &&\
34+ python3 update_yaml.py '{"backendImage":"'"${DOCKER_APP_IMAGE_NAME}:${GITHUB_SHA}"'"}' apps/site/values-auto-updated.yaml &&\
3735 git config --global user.name "Open Knesset Backend CI" &&\
3836 git config --global user.email "open-knesset-backend-ci@localhost" &&\
3937 git add apps/site/values-auto-updated.yaml && git commit -m "automatic update of open knesset backend" &&\
You can’t perform that action at this time.
0 commit comments