Update '.gitlab-ci.yml'
This commit is contained in:
parent
e8459e903f
commit
9934bf96b2
|
@ -14,17 +14,15 @@ docker-build:
|
|||
cache: [] # disable cache to prevent old layers
|
||||
image: docker:dind
|
||||
variables:
|
||||
HTTPS_PROXY: "http://172.17.0.1:7890"
|
||||
HTTP_PROXY: "http://172.17.0.1:7890"
|
||||
stage: build
|
||||
when: manual
|
||||
services:
|
||||
- docker:dind
|
||||
before_script:
|
||||
- echo "$CI_REGISTRY_PASSWORD" | docker login glcr.cra.ac.cn --username "$CI_REGISTRY_USER" --password-stdin
|
||||
- echo "$CI_REGISTRY_PASSWORD" | docker login glcr.cklau.cc --username "$CI_REGISTRY_USER" --password-stdin
|
||||
# Default branch leaves tag empty (= latest tag)
|
||||
# All other branches are tagged with the escaped branch name (commit ref slug)
|
||||
script:
|
||||
- |
|
||||
docker build -t "glcr.cra.ac.cn/sustech-cra/overleaf-ldap-oauth2:3.1-20220612" .
|
||||
docker push "glcr.cra.ac.cn/sustech-cra/overleaf-ldap-oauth2:3.1-20220612"
|
||||
docker build -t "glcr.cklau.cc/bayes-cluster/overleaf-sso" .
|
||||
docker push "glcr.cklau.cc/bayes-cluster/overleaf-sso"
|
||||
|
|
Loading…
Reference in New Issue