fix: gitlab-ci
This commit is contained in:
parent
2a7ec6acb0
commit
9e497069a3
|
|
@ -1,26 +1,23 @@
|
|||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
build-prod:
|
||||
|
||||
build-dev:
|
||||
stage: build
|
||||
when: on_success
|
||||
only:
|
||||
- main
|
||||
- dev-landing-v2
|
||||
- prod
|
||||
image:
|
||||
image:
|
||||
name: docker:25.0.3-cli
|
||||
services:
|
||||
- name: docker:25.0.3-dind
|
||||
command: ["--insecure-registry=38.47.185.86:8900"]
|
||||
script:
|
||||
- docker logout
|
||||
- echo "Username:$DEPLOY_USERNAME"
|
||||
- echo "Token:$DEPLOY_TOKEN"
|
||||
- echo "$DEPLOY_TOKEN" | docker login 38.47.185.86:8900 --username "$DEPLOY_USERNAME" --password-stdin
|
||||
- docker build --no-cache -t 38.47.185.86:8900/mediahub/new-mediahub-fe:prod .
|
||||
- docker push 38.47.185.86:8900/mediahub/new-mediahub-fe:prod
|
||||
- docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 38.47.185.86:8900
|
||||
- docker build -t 38.47.185.86:8900/mediahub/new-mediahub-fe:dev .
|
||||
- docker push 38.47.185.86:8900/mediahub/new-mediahub-fe:dev
|
||||
|
||||
auto-deploy:
|
||||
stage: deploy
|
||||
|
|
|
|||
Loading…
Reference in New Issue