ci
This commit is contained in:
parent
ff8fd8eec4
commit
e3ba54ce35
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
image: docker:latest
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DOCKER_DRIVER: overlay
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
artix-packy-pusher:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- docker build --pull --no-cache -t "$CI_REGISTRY_IMAGE" .
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
stage: deploy
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker push "$CI_REGISTRY_IMAGE"
|
Loading…
x
Reference in New Issue
Block a user