Another CI/CD change

This commit is contained in:
Nick Bland 2022-04-23 00:59:29 +10:00
parent 50a30a8a34
commit 71563f316d
No known key found for this signature in database
GPG Key ID: B46CF88E4DAB4A2C

View File

@ -32,7 +32,7 @@ build:sourceCode:
stage: build stage: build
script: script:
- docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from "$IMAGE_DEPENDANCY" --cache-from "$IMAGE_BUILD" --target builder -t "$IMAGE_BUILD" . - docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from "$IMAGE_DEPENDANCY" --cache-from "$IMAGE_BUILD" --target builder -t "$IMAGE_BUILD" .
- docker push "$IMAGE_DEPENDANCY" - docker push "$IMAGE_BUILD"
## ADD TEST CASES BELOW ## ## ADD TEST CASES BELOW ##
test:linter: test:linter:
@ -48,5 +48,5 @@ deploy:
stage: deploy stage: deploy
needs: ["test:linter"] needs: ["test:linter"]
script: script:
- docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from "$IMAGE_DEPENDANCY" --cache-from "$IMAGE_BUILD" -t "$IMAGE_DEPLOY" . - docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from "$IMAGE_DEPENDANCY" --cache-from "$IMAGE_BUILD" -t "$IMAGE_FINAL" .
- docker push "$IMAGE_FINAL" - docker push "$IMAGE_FINAL"