mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-08 20:22:45 +01:00
Merge branch 'master' into 'master'
Add build for arm64v8 See merge request timvisee/send!27
This commit is contained in:
commit
ca52f84aa5
@ -51,7 +51,8 @@ release-docker:
|
|||||||
- web
|
- web
|
||||||
script:
|
script:
|
||||||
- docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
|
- docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
|
||||||
- docker build -t send .
|
- docker buildx create --name sendBuilder
|
||||||
|
- docker buildx use sendBuilder
|
||||||
- |
|
- |
|
||||||
if [ "$CI_PIPELINE_SOURCE" == "merge_request_event" ]; then
|
if [ "$CI_PIPELINE_SOURCE" == "merge_request_event" ]; then
|
||||||
IMAGE_NAMES="$CI_REGISTRY_IMAGE/mr:$CI_MERGE_REQUEST_IID"
|
IMAGE_NAMES="$CI_REGISTRY_IMAGE/mr:$CI_MERGE_REQUEST_IID"
|
||||||
@ -62,8 +63,7 @@ release-docker:
|
|||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
for image in $IMAGE_NAMES; do
|
for image in $IMAGE_NAMES; do
|
||||||
docker tag send $image
|
docker buildx build --platform linux/amd64,linux/arm64 -t $image . --push
|
||||||
docker push $image
|
|
||||||
done
|
done
|
||||||
- |
|
- |
|
||||||
echo "Container image pushed. You can pull it with";
|
echo "Container image pushed. You can pull it with";
|
||||||
|
Loading…
Reference in New Issue
Block a user