mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Cut back on Gitlab-ci & misc pipeline updates
This commit is contained in:
parent
bce1078ced
commit
cae7ec1eb4
5 changed files with 38 additions and 211 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue