mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 22:46:31 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 02c544746a | |||
| 64d3f828c8 | |||
| 3b61dc4564 | |||
| 2f6fb41411 | |||
| 854cb505af | |||
| 849e32c6ae |
@@ -8,9 +8,24 @@ labels:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-push
|
- name: build-push
|
||||||
image: docker
|
image: docker
|
||||||
|
environment:
|
||||||
|
REGISTRY_HOST:
|
||||||
|
from_secret: registry_host
|
||||||
|
REGISTRY_USER:
|
||||||
|
from_secret: registry_user
|
||||||
|
REGISTRY_TOKEN:
|
||||||
|
from_secret: registry_token
|
||||||
commands:
|
commands:
|
||||||
- if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi
|
- echo "$REGISTRY_TOKEN" | docker login "$REGISTRY_HOST" -u "$REGISTRY_USER" --password-stdin
|
||||||
- docker build -f Dockerfile.jetson -t localhost:5000/detections:$TAG .
|
- export TAG=${CI_COMMIT_BRANCH}-arm
|
||||||
- docker push localhost:5000/detections:$TAG
|
- export BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||||
|
- |
|
||||||
|
docker build -f Dockerfile.jetson \
|
||||||
|
--build-arg CI_COMMIT_SHA=$CI_COMMIT_SHA \
|
||||||
|
--label org.opencontainers.image.revision=$CI_COMMIT_SHA \
|
||||||
|
--label org.opencontainers.image.created=$BUILD_DATE \
|
||||||
|
--label org.opencontainers.image.source=$CI_REPO_URL \
|
||||||
|
-t $REGISTRY_HOST/azaion/detections:$TAG .
|
||||||
|
- docker push $REGISTRY_HOST/azaion/detections:$TAG
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
FROM nvcr.io/nvidia/l4t-jetpack:r36.2.0
|
FROM nvcr.io/nvidia/l4t-jetpack:r36.2.0
|
||||||
|
ARG CI_COMMIT_SHA=unknown
|
||||||
|
ENV AZAION_REVISION=$CI_COMMIT_SHA
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
python3 python3-pip python3-dev gcc \
|
python3 python3-pip python3-dev gcc \
|
||||||
|
|||||||
Reference in New Issue
Block a user