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:
15
util/ci/docker.sh
Executable file
15
util/ci/docker.sh
Executable 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
|
Reference in New Issue
Block a user