Created
May 13, 2022 07:03
-
-
Save ajitStephen/464adaffcf87f354791a317e21595b99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pylon-rust-detection-build: | |
image: IMAGE_PATH | |
rules: | |
- if: $CI_PIPELINE_SOURCE == "merge_request_event" | |
when: never | |
- if: $CI_COMMIT_BRANCH == "rust_detection" | |
when: always | |
- when: never | |
stage: build | |
variables: | |
DOCKER_TLS_CERTDIR: "/certs" | |
services: | |
- name: docker:19.03.13-dind | |
alias: docker | |
script: | |
- whoami | |
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin- | |
- cp -R ai-annotations /object_detector/ai-annotations | |
- cd /object_detector/ai-annotations | |
- npm ci | |
- PORT=5000 npm run live | |
- docker build -t $CI_REGISTRY/group/project/folder . | |
- docker push $CI_REGISTRY/group/project/folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment