forked from potsda.mn/mobilizon
Merge branch 'ci-docker-build-allow-failure' into 'main'
ci(docker-arm-build): allow Docker arm image build to fail See merge request framasoft/mobilizon!1390
This commit is contained in:
commit
964e479aaf
|
@ -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 .
|
||||
|
||||
|
|
Loading…
Reference in a new issue