stages: - build - deploy variables: IMAGE: vmcr.cz/ant.k8s.vxm.cz IMAGE_TAG: $CI_COMMIT_SHORT_SHA build: stage: build image: sikalabs/ci-node before_script: - docker info script: - cd sites/ant.k8s.vxm.cz - yarn install --frozen-lockfile - yarn build - docker build --tag $IMAGE:$IMAGE_TAG --file ./build/Containerfile . - docker push $IMAGE:$IMAGE_TAG deploy: stage: deploy image: python:latest before_script: - python --version - pip install virtualenv - virtualenv venv - source venv/bin/activate script: - cd sites/ant.k8s.vxm.cz - pip install requests - python ci/gitlab-commit.py