ci: add ci
This commit is contained in:
parent
9a1cc6f04d
commit
63dc07fd68
2 changed files with 31 additions and 0 deletions
18
sites/octopus.k8s.vxm.cz/.gitlab-ci.yml
Normal file
18
sites/octopus.k8s.vxm.cz/.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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 --file ./build/Containerfile .
|
||||
- docker push $IMAGE:$IMAGE_TAG
|
||||
Reference in a new issue