Skip to content

Instantly share code, notes, and snippets.

@ajitStephen
Created May 13, 2022 07:03
Show Gist options
  • Save ajitStephen/464adaffcf87f354791a317e21595b99 to your computer and use it in GitHub Desktop.
Save ajitStephen/464adaffcf87f354791a317e21595b99 to your computer and use it in GitHub Desktop.
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