initial commit

This commit is contained in:
2023-04-09 11:05:20 -05:00
parent 3c2310be91
commit d4b6f78554
12 changed files with 206 additions and 0 deletions

View 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
View File