forked from potsda.mn/mobilizon
ci(docker-arm-build): allow Docker arm image build to fail
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
3309850d72
commit
9fe2f658e2
|
@ -247,7 +247,6 @@ build-docker-main:
|
||||||
script:
|
script:
|
||||||
- docker buildx build --push --platform linux/amd64 -t framasoft/mobilizon:main -f docker/production/Dockerfile .
|
- docker buildx build --push --platform linux/amd64 -t framasoft/mobilizon:main -f docker/production/Dockerfile .
|
||||||
|
|
||||||
# Don't push to latest when building beta/rc tags
|
|
||||||
build-and-push-to-latest-docker-tag:
|
build-and-push-to-latest-docker-tag:
|
||||||
<<: *docker
|
<<: *docker
|
||||||
rules: &release-tag-rules
|
rules: &release-tag-rules
|
||||||
|
@ -260,11 +259,31 @@ build-and-push-to-latest-docker-tag:
|
||||||
- >
|
- >
|
||||||
docker buildx build
|
docker buildx build
|
||||||
--push
|
--push
|
||||||
--platform linux/amd64,linux/arm
|
--platform linux/amd64
|
||||||
-t framasoft/mobilizon:$CI_COMMIT_TAG
|
-t framasoft/mobilizon:$CI_COMMIT_TAG
|
||||||
-t framasoft/mobilizon:latest
|
-t framasoft/mobilizon:latest
|
||||||
-f docker/production/Dockerfile .
|
-f docker/production/Dockerfile .
|
||||||
|
|
||||||
|
build-and-push-to-latest-docker-tag-cross:
|
||||||
|
<<: *docker
|
||||||
|
rules: &release-tag-rules
|
||||||
|
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
||||||
|
when: never
|
||||||
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /alpha|beta|rc/
|
||||||
|
when: on_success
|
||||||
|
timeout: 3 hours
|
||||||
|
allow_failure: true
|
||||||
|
script:
|
||||||
|
- >
|
||||||
|
docker buildx build
|
||||||
|
--push
|
||||||
|
--platform linux/arm, linux/arm64
|
||||||
|
-t framasoft/mobilizon:$CI_COMMIT_TAG
|
||||||
|
-t framasoft/mobilizon:latest
|
||||||
|
-f docker/production/Dockerfile .
|
||||||
|
|
||||||
|
|
||||||
|
# Don't push to latest when building beta/rc tags
|
||||||
build-and-push-docker-tag:
|
build-and-push-docker-tag:
|
||||||
<<: *docker
|
<<: *docker
|
||||||
rules: &pre-release-tag-rules
|
rules: &pre-release-tag-rules
|
||||||
|
@ -277,7 +296,7 @@ build-and-push-docker-tag:
|
||||||
- >
|
- >
|
||||||
docker buildx build
|
docker buildx build
|
||||||
--push
|
--push
|
||||||
--platform linux/amd64,linux/arm
|
--platform linux/amd64
|
||||||
-t framasoft/mobilizon:$CI_COMMIT_TAG
|
-t framasoft/mobilizon:$CI_COMMIT_TAG
|
||||||
-f docker/production/Dockerfile .
|
-f docker/production/Dockerfile .
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue