Commit b7899071 authored by Paal Kvamme's avatar Paal Kvamme
Browse files

Additional protection against two builds running on the same Docker host.

parent 77852943
Pipeline #23900 passed with stages
in 9 minutes and 42 seconds
......@@ -19,6 +19,7 @@ steps:
- template: templates/build-steps.yml
parameters:
linuxdistro: 'bionic'
tagtail: 'nosd'
makeargs: HAVE_SD=
deployed: >
deploy.tgz
......
......@@ -20,6 +20,7 @@ steps:
parameters:
makeargs: SDAPI_OSDU=ON
linuxdistro: 'bionic'
tagtail: 'osdu'
deployed: >
deploy.tgz
deploy/pure/OpenZGY-*-py3-none-any.whl
......
......@@ -19,6 +19,7 @@ steps:
- template: templates/build-steps.yml
parameters:
linuxdistro: 'buster'
tagtail: 'nosd'
makeargs: HAVE_SD=
deployed: >
deploy.tgz
......
......@@ -20,6 +20,7 @@ steps:
parameters:
makeargs: SDAPI_OSDU=ON
linuxdistro: 'buster'
tagtail: 'osdu'
deployed: >
deploy.tgz
deploy/pure/OpenZGY-*-py3-none-any.whl
......
......@@ -19,6 +19,7 @@ steps:
- template: templates/build-steps.yml
parameters:
linuxdistro: 'centos7'
tagtail: 'nosd'
makeargs: HAVE_SD=
deployed: >
deploy.tgz
......
......@@ -20,6 +20,7 @@ steps:
parameters:
makeargs: SDAPI_OSDU=ON
linuxdistro: 'centos7'
tagtail: 'osdu'
deployed: >
deploy.tgz
deploy/pure/OpenZGY-*-py3-none-any.whl
......
......@@ -19,6 +19,7 @@ steps:
- template: templates/build-steps.yml
parameters:
linuxdistro: 'centos8'
tagtail: 'nosd'
makeargs: HAVE_SD=
deployed: >
deploy.tgz
......
......@@ -20,6 +20,7 @@ steps:
parameters:
makeargs: SDAPI_OSDU=ON
linuxdistro: 'centos8'
tagtail: 'osdu'
deployed: >
deploy.tgz
deploy/pure/OpenZGY-*-py3-none-any.whl
......
......@@ -19,6 +19,7 @@ steps:
- template: templates/build-steps.yml
parameters:
linuxdistro: 'focal'
tagtail: 'nosd'
makeargs: HAVE_SD=
deployed: >
deploy.tgz
......
......@@ -20,6 +20,7 @@ steps:
parameters:
makeargs: SDAPI_OSDU=ON
linuxdistro: 'focal'
tagtail: 'osdu'
deployed: >
deploy.tgz
deploy/pure/OpenZGY-*-py3-none-any.whl
......
......@@ -19,6 +19,7 @@ steps:
- template: templates/build-steps.yml
parameters:
linuxdistro: 'stretch'
tagtail: 'nosd'
makeargs: HAVE_SD=
deployed: >
deploy.tgz
......
......@@ -20,6 +20,7 @@ steps:
parameters:
makeargs: SDAPI_OSDU=ON
linuxdistro: 'stretch'
tagtail: 'osdu'
deployed: >
deploy.tgz
deploy/pure/OpenZGY-*-py3-none-any.whl
......
......@@ -19,6 +19,7 @@ steps:
- template: templates/build-steps.yml
parameters:
linuxdistro: 'xenial'
tagtail: 'nosd'
makeargs: HAVE_SD=
deployed: >
deploy.tgz
......
......@@ -20,6 +20,7 @@ steps:
parameters:
makeargs: SDAPI_OSDU=ON
linuxdistro: 'xenial'
tagtail: 'osdu'
deployed: >
deploy.tgz
deploy/pure/OpenZGY-*-py3-none-any.whl
......
......@@ -2,6 +2,7 @@ parameters:
linuxdistro: 'centos8'
deployed: .
makeargs: ''
tagtail: 'default'
steps:
- checkout: self
......@@ -36,7 +37,7 @@ steps:
set -e -x
export LINUXDISTRO=${{parameters.linuxdistro}}
export DOCKERFILE=scripts/Dockerfile-${LINUXDISTRO}
TAG=azure-build-openzgy-${LINUXDISTRO}
TAG=azure-build-openzgy-${LINUXDISTRO}-${{parameters.tagtail}}
docker tag ${TAG} ${TAG}:old || true
mkdir -p seismic-service-bin private
docker build --pull -t ${TAG} -f ${DOCKERFILE} .
......@@ -58,7 +59,7 @@ steps:
displayName: 'Build OpenZGY'
- bash: |
TAG=azure-build-openzgy-${{parameters.linuxdistro}}
TAG=azure-build-openzgy-${{parameters.linuxdistro}}-${{parameters.tagtail}}
docker run --rm -e OPENZGY_TOKEN -e OPENZGY_SDURL -e OPENZGY_SDAPIKEY -e LINUXDISTRO=${{parameters.linuxdistro}} ${TAG}:test native/src/runtests.sh
env:
OPENZGY_TOKEN: $(SEISMIC_STORE_TEST_TOKEN)
......@@ -67,7 +68,7 @@ steps:
displayName: 'Test native'
- bash: |
TAG=azure-build-openzgy-${{parameters.linuxdistro}}
TAG=azure-build-openzgy-${{parameters.linuxdistro}}-${{parameters.tagtail}}
docker run --rm -e OPENZGY_TOKEN -e OPENZGY_SDURL -e OPENZGY_SDAPIKEY -e LINUXDISTRO=${{parameters.linuxdistro}} ${TAG}:test native/sdglue/runtests.sh
env:
OPENZGY_TOKEN: $(SEISMIC_STORE_TEST_TOKEN)
......@@ -76,7 +77,7 @@ steps:
displayName: 'Test sdglue'
- bash: |
TAG=azure-build-openzgy-${{parameters.linuxdistro}}
TAG=azure-build-openzgy-${{parameters.linuxdistro}}-${{parameters.tagtail}}
docker run --rm -e OPENZGY_TOKEN -e OPENZGY_SDURL -e OPENZGY_SDAPIKEY -e LINUXDISTRO=${{parameters.linuxdistro}} ${TAG}:test wrapper/runtests.sh
env:
OPENZGY_TOKEN: $(SEISMIC_STORE_TEST_TOKEN)
......@@ -85,7 +86,7 @@ steps:
displayName: 'Test wrapper'
- bash: |
TAG=azure-build-openzgy-${{parameters.linuxdistro}}
TAG=azure-build-openzgy-${{parameters.linuxdistro}}-${{parameters.tagtail}}
docker run --rm -e OPENZGY_TOKEN -e OPENZGY_SDURL -e OPENZGY_SDAPIKEY -e LINUXDISTRO=${{parameters.linuxdistro}} ${TAG}:test python/runtests.sh
env:
OPENZGY_TOKEN: $(SEISMIC_STORE_TEST_TOKEN)
......
Supports Markdown
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