mirror of
https://github.com/azaion/loader.git
synced 2026-04-22 07:06:33 +00:00
[AZ-185][AZ-186] Batch 2
Made-with: Cursor
This commit is contained in:
@@ -12,5 +12,19 @@ steps:
|
||||
- if [ "$CI_COMMIT_BRANCH" = "main" ]; then export TAG=arm; else export TAG=${CI_COMMIT_BRANCH}-arm; fi
|
||||
- docker build -f Dockerfile -t localhost:5000/loader:$TAG .
|
||||
- docker push localhost:5000/loader:$TAG
|
||||
- docker save localhost:5000/loader:$TAG -o loader-image.tar
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- name: publish-artifact
|
||||
image: python:3.11-slim
|
||||
commands:
|
||||
- pip install --no-cache-dir boto3==1.40.9 cryptography==44.0.2 requests==2.32.4
|
||||
- |
|
||||
if [ "$CI_COMMIT_BRANCH" = "main" ]; then
|
||||
export PUBLISH_DEV_STAGE=main
|
||||
export TAG=arm
|
||||
else
|
||||
export PUBLISH_DEV_STAGE=$CI_COMMIT_BRANCH
|
||||
export TAG=${CI_COMMIT_BRANCH}-arm
|
||||
fi
|
||||
- python scripts/publish_artifact.py --file loader-image.tar --resource-name loader --dev-stage "$PUBLISH_DEV_STAGE" --architecture arm64 --version "$CI_COMMIT_SHA"
|
||||
|
||||
Reference in New Issue
Block a user