Alternative attempt to trigger next branch builds

This commit is contained in:
Deon George 2021-05-27 09:44:36 +10:00
parent f81815e789
commit 0c0f172782

View File

@ -3,7 +3,6 @@ image: docker:latest
stages:
- test
- build
- build-next
- build-test
variables:
@ -38,19 +37,13 @@ x86_64:build:
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
- docker push ${CI_REGISTRY_IMAGE}:${CACHETAG}
- apt install -y curl && curl -X POST -F token=${CI_JOB_TOKEN} -F ref=ext ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/trigger/pipeline
tags:
- docker
- x86_64
only:
- mysql
x86_64:build-next:
stage: build-next
script:
- curl -X POST -F token=${CI_JOB_TOKEN} -F ref=ext ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/trigger/pipeline
only:
- mysql
x86_64:build-test:
stage: build-test
script: