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/octopus.k8s.vxm.cz/.gitlab-ci.yml

29 lines
898 B
YAML

stages:
- build
build:
stage: build
image: sikalabs/ci-node
variables:
IMAGE: $CI_REGISTRY_IMAGE/octopus.k8s.vxm.cz
IMAGE_TAG: $CI_COMMIT_SHA
before_script:
- docker info
- echo $CI_REGISTRY_PASSWORD | docker login $CI_REGISTRY -u gitlab-ci-token --password-stdin
script:
- cd sites/octopus.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: sikalabs/ci
# environment:
# name: production
# url: https://octopus.k8s.vxm.cz
# script:
# - cd sites/octopus.k8s.vxm.cz
# - mkdir -p _deploy/octopus.k8s.vxm.cz
# - helm template octopus.k8s.vxm.cz ./deploy/chart/octopus.k8s.vxm.cz --set image.repository=$IMAGE --set image.tag=$IMAGE_TAG > ./_deploy/octopus.k8s.vxm.cz/generated.yml