Do not want these interfering with develop builds
authorMark Felder <feld@feld.me>
Wed, 17 Feb 2021 16:24:37 +0000 (10:24 -0600)
committerMark Felder <feld@feld.me>
Wed, 17 Feb 2021 16:24:37 +0000 (10:24 -0600)
.gitlab-ci.yml

index 291a5cff96589b52ea740d5ead199540a7948f76..c7e8291d8161005471895583e3736aed095e517d 100644 (file)
@@ -326,7 +326,6 @@ docker:
     - dind
   only:
     - develop@pleroma/pleroma
-    - /^build-docker/.*$/@pleroma/pleroma
 
 docker-stable:
   stage: docker
@@ -372,3 +371,26 @@ docker-release:
     - dind
   only:
     - /^release/.*$/@pleroma/pleroma
+
+docker-adhoc:
+  stage: docker
+  image: docker:latest
+  cache: {}
+  dependencies: []
+  variables: *docker-variables
+  before_script: *before-docker
+  allow_failure: true
+  script:
+  script:
+    - mkdir -p /root/.docker/cli-plugins
+    - wget "${DOCKER_BUILDX_URL}" -O ~/.docker/cli-plugins/docker-buildx
+    - echo "${DOCKER_BUILDX_HASH}  /root/.docker/cli-plugins/docker-buildx" | sha1sum -c
+    - chmod +x ~/.docker/cli-plugins/docker-buildx
+    - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
+    - docker buildx create --name mbuilder --driver docker-container --use
+    - docker buildx inspect --bootstrap
+    - docker buildx build --platform linux/amd64,linux/arm/v7,linux/arm64/v8 --push --cache-from $IMAGE_TAG_SLUG --build-arg VCS_REF=$CI_VCS_REF --build-arg BUILD_DATE=$CI_JOB_TIMESTAMP -t $IMAGE_TAG -t $IMAGE_TAG_SLUG .
+  tags:
+    - dind
+  only:
+    - /^build-docker/.*$/@pleroma/pleroma
\ No newline at end of file