mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 16:00:31 -05:00
initial commit
This commit is contained in:
parent
3c2310be91
commit
d4b6f78554
12 changed files with 206 additions and 0 deletions
24
pipelines/build-container.yml
Normal file
24
pipelines/build-container.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
build-container:
|
||||
image: docker:19.03.12
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
DOCKER_TLS_CERTDIR: ""
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
services:
|
||||
- docker:19.03.12-dind
|
||||
stage: package
|
||||
script:
|
||||
# Begin of docker-login.sh
|
||||
- |
|
||||
#login to docker
|
||||
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY/$CI_PROJECT_PATH
|
||||
# End of docker-login.sh
|
||||
|
||||
# Begin of docker-build.sh
|
||||
- |
|
||||
#Build Docker Container
|
||||
docker build -t $CI_REGISTRY/$CI_PROJECT_PATH:$DOCKERTAG -t $CI_REGISTRY/$CI_PROJECT_PATH:latest .
|
||||
docker push "$CI_REGISTRY/$CI_PROJECT_PATH:latest"
|
||||
# End of docker-build.sh
|
||||
only:
|
||||
- main
|
||||
0
pipelines/temp
Normal file
0
pipelines/temp
Normal file
Loading…
Add table
Add a link
Reference in a new issue