Commit e7e21953 authored by Yechang's avatar Yechang
Browse files

ci(ci): ci with deps

parent a4009640
Loading
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
stages:
  - build
  - push

default:
  before_script:
    # - docker login $CI_REGISTRY -u $CI_REGISTRY_USER --password-stdin <<<$CI_REGISTRY_PASSWORD
@@ -8,11 +12,25 @@ default:
    - docker logout $TCR_REGISTRY

build_migration:
  stage: build
  script:
    - docker build -t $DOCKER_MIGRATION_REPOSITORY:$DOCKER_TAG --target migration .

push_migration:
  stage: push
  needs:
    - build_migration
  script: 
    - docker push $DOCKER_MIGRATION_REPOSITORY:$DOCKER_TAG

build_web:
build:
  stage: build
  script:
    - docker build -t $DOCKER_REPOSITORY:$DOCKER_TAG .

push:
  stage: push
  needs:
    - build
  script: 
    - docker push $DOCKER_REPOSITORY:$DOCKER_TAG
 No newline at end of file