ci(docker-arm-build): allow Docker arm image build to fail

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-05-23 18:10:40 +02:00
parent 3309850d72
commit 9fe2f658e2
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -247,7 +247,6 @@ build-docker-main:
script:
- 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:
<<: *docker
rules: &release-tag-rules
@ -260,11 +259,31 @@ build-and-push-to-latest-docker-tag:
- >
docker buildx build
--push
--platform linux/amd64,linux/arm
--platform linux/amd64
-t framasoft/mobilizon:$CI_COMMIT_TAG
-t framasoft/mobilizon:latest
-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:
<<: *docker
rules: &pre-release-tag-rules
@ -277,7 +296,7 @@ build-and-push-docker-tag:
- >
docker buildx build
--push
--platform linux/amd64,linux/arm
--platform linux/amd64
-t framasoft/mobilizon:$CI_COMMIT_TAG
-f docker/production/Dockerfile .