Commit f253c129 authored by Kevin Daudt's avatar Kevin Daudt

docker-image: Add option to disable arches

Not all images will be able to build on all arches. Use the 'except'
feature to exclude arches when a specific variable is set.

Fixes #1
parent 04c45d98
Pipeline #2761 passed with stage
in 33 seconds
......@@ -32,6 +32,9 @@ build-s390x:
extends: .build
variables:
ARCH: s390x
except:
variables:
- $DISABLE_S390X
tags:
- docker-alpine
- ci-docker-image
......@@ -41,6 +44,9 @@ build-x86_64:
extends: .build
variables:
ARCH: x86_64
except:
variables:
- $DISABLE_X86_64
tags:
- docker-alpine
- ci-docker-image
......@@ -54,6 +60,9 @@ build-x86:
variables:
ARCH: x86
DOCKER_ARCH: i386
except:
variables:
- $DISABLE_X86
tags:
- docker-alpine
- ci-docker-image
......@@ -63,6 +72,9 @@ build-ppc64le:
extends: .build
variables:
ARCH: ppc64le
except:
variables:
- $DISABLE_PPC64LE
tags:
- docker-alpine
- ci-docker-image
......@@ -72,6 +84,9 @@ build-aarch64:
extends: .build
variables:
ARCH: aarch64
except:
variables:
- $DISABLE_AARCH64
tags:
- docker-alpine
- ci-docker-image
......@@ -81,6 +96,9 @@ build-armv7:
extends: .build
variables:
ARCH: armv7
except:
variables:
- $DISABLE_ARMV7
tags:
- docker-alpine
- ci-docker-image
......@@ -108,6 +126,9 @@ upload-s390x:
extends: .upload
variables:
ARCH: s390x
except:
variables:
- $DISABLE_S390X
dependencies:
- build-s390x
needs:
......@@ -121,6 +142,9 @@ upload-x86_64:
extends: .upload
variables:
ARCH: x86_64
except:
variables:
- $DISABLE_X86_64
dependencies:
- build-x86_64
needs:
......@@ -136,6 +160,9 @@ upload-x86:
extends: .upload
variables:
ARCH: x86
except:
variables:
- $DISABLE_X86
dependencies:
- build-x86
needs:
......@@ -149,6 +176,9 @@ upload-ppc64le:
extends: .upload
variables:
ARCH: ppc64le
except:
variables:
- $DISABLE_PPC64LE
dependencies:
- build-ppc64le
needs:
......@@ -162,6 +192,9 @@ upload-aarch64:
extends: .upload
variables:
ARCH: aarch64
except:
variables:
- $DISABLE_AARCH64
dependencies:
- build-aarch64
needs:
......@@ -175,6 +208,9 @@ upload-armv7:
extends: .upload
variables:
ARCH: armv7
except:
variables:
- $DISABLE_ARMV7
dependencies:
- build-armv7
needs:
......
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