1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-internal-static-sites/sites/ant.k8s.vxm.cz/.gitlab-ci.yml

30 lines
640 B
YAML

stages:
- build
- deploy
build:
stage: build
image: sikalabs/ci-node
variables:
IMAGE: vmcr.cz/ant.k8s.vxm.cz
IMAGE_TAG: $CI_COMMIT_SHORT_SHA
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:
- pip install requests
- python ci/gitlab-commit.py