ci: render

Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1279031201
This commit is contained in:
2024-05-05 13:42:42 +00:00
parent e5661070c8
commit 46c05c1fc3
2 changed files with 31 additions and 18 deletions

View File

@@ -31,6 +31,15 @@
- name: docker:dind
entrypoint: ["dockerd-entrypoint.sh", "--tls=false"]
script:
# Begin of version.sh
- |
#check for Version variable
if [ -z "${VERSION}" ]; then
# If not, assign a default value
VERSION=$CI_COMMIT_SHORT_SHA
fi
# End of version.sh
# Begin of build.sh
- |
#Build Docker Container
@@ -39,6 +48,10 @@
docker build -t $containername .
docker save -o $CI_PROJECT_DIR/packages/$containername.$VERSION.tar.gz $containername
# End of build.sh
artifacts:
expire_in: 1 hour
paths:
- $CI_PROJECT_DIR/packages
.docker_push_gitlab:
image: registry.internal.durp.info/docker:20.10.17
variables: