Commit 52c1c4aa authored by nanahira's avatar nanahira

Update .gitlab-ci.yml

parent a7d21965
Pipeline #37560 failed with stages
in 3 minutes and 9 seconds
stages: stages:
- build - build
- pack
- deploy - deploy
variables: variables:
...@@ -12,6 +13,7 @@ before_script: ...@@ -12,6 +13,7 @@ before_script:
.build-image: .build-image:
stage: build stage: build
dependencies: []
script: script:
- | - |
docker build --pull -t "$TARGET_IMAGE" \ docker build --pull -t "$TARGET_IMAGE" \
...@@ -66,6 +68,7 @@ build-debian12-arm: ...@@ -66,6 +68,7 @@ build-debian12-arm:
.deploy-manifest: .deploy-manifest:
stage: deploy stage: deploy
dependencies: []
tags: tags:
- docker - docker
script: script:
...@@ -126,3 +129,47 @@ deploy-branch-combined: ...@@ -126,3 +129,47 @@ deploy-branch-combined:
variables: variables:
BASE_TAG: debian11 # use debian11 images for multi-arch fallback BASE_TAG: debian11 # use debian11 images for multi-arch fallback
TARGET_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG TARGET_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
#########################
# Pack premake5
#########################
.pack_premake5:
stage: pack
dependencies: []
artifacts:
paths:
- dist
script:
- mkdir -p dist
- cp /usr/bin/premake5 .
- chmod +x premake5
- tar -zcvf dist/premake5-built-$ARCH.tar.gz premake5
pack_premake5_x86:
extends: .pack_premake5
tags:
- linux
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-debian11-x86
variables:
ARCH: amd64
pack_premake5_arm:
extends: .pack_premake5
tags:
- linux-arm
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-debian11-arm
variables:
ARCH: arm64
upload_to_minio:
stage: deploy
dependencies:
- pack_premake5_x86
- pack_premake5_arm
tags:
- linux
script:
- aws s3 --endpoint=https://minio.moenext.com:9000 sync dist/ s3://mycard/premake5-built
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment