Move docker publishing and testing to script instead of after_script in the CI
This commit is contained in:
parent
acc13ba817
commit
af9e6a90b9
@ -97,8 +97,8 @@ build-current-docker-image:
|
|||||||
stage: build_docker
|
stage: build_docker
|
||||||
<<: *docker
|
<<: *docker
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
after_script:
|
script:
|
||||||
- scripts/test_cli.sh
|
- sh scripts/test_cli.sh
|
||||||
except:
|
except:
|
||||||
- master
|
- master
|
||||||
- dev
|
- dev
|
||||||
@ -109,7 +109,7 @@ build-and-publish-latest-docker-image:
|
|||||||
stage: build_and_deploy_docker
|
stage: build_and_deploy_docker
|
||||||
<<: *docker
|
<<: *docker
|
||||||
<<: *docker_build
|
<<: *docker_build
|
||||||
after_script:
|
script:
|
||||||
- docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD
|
- docker login -u $LIGO_REGISTRY_USER -p $LIGO_REGISTRY_PASSWORD
|
||||||
- sh scripts/test_cli.sh
|
- sh scripts/test_cli.sh
|
||||||
- docker push $LIGO_REGISTRY_IMAGE:next
|
- docker push $LIGO_REGISTRY_IMAGE:next
|
||||||
|
Loading…
Reference in New Issue
Block a user