ci: Handle image management between jobs

This commit is contained in:
Glenn Y. Rolland 2022-07-09 20:15:04 +02:00
parent a53a103a1d
commit b98c50246f

View file

@ -36,12 +36,10 @@ build:docker-image:
- build:executable - build:executable
script: script:
- make docker-build - make docker-build
- make docker-save > _artifacts/docker-image.tar
artifacts: artifacts:
paths: paths:
- bin - _artifacts
cache:
paths:
- lib
sast: sast:
stage: test stage: test
@ -55,6 +53,7 @@ publish:docker-image:
- docker:20.10.16-dind - docker:20.10.16-dind
script: script:
- apk install make - apk install make
- make docker-load < _artifacts/docker-image.tar
- make docker-push - make docker-push
artifacts: artifacts:
paths: paths: