1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Cut back on Gitlab-ci & misc pipeline updates

This commit is contained in:
sfan5
2022-08-15 10:47:47 +02:00
committed by GitHub
parent bce1078ced
commit cae7ec1eb4
5 changed files with 38 additions and 211 deletions

15
util/ci/docker.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh -e
name=${CONTAINER_IMAGE}/server
# build and publish Docker image (gitlab-ci)
docker build . \
-t ${name}:${CI_COMMIT_SHA} \
-t ${name}:${CI_COMMIT_REF_NAME} \
-t ${name}:latest
docker push ${name}:${CI_COMMIT_SHA}
docker push ${name}:${CI_COMMIT_REF_NAME}
[ "$CI_COMMIT_BRANCH" = master ] && docker push ${name}:latest
exit 0