CI/CD adjustment

This commit is contained in:
Nick Bland 2022-04-22 11:45:32 +10:00
parent bd75455f93
commit 8a5b732d13
No known key found for this signature in database
GPG Key ID: B46CF88E4DAB4A2C

View File

@ -18,13 +18,13 @@ stages:
- docker:dind
before_script:
- docker --version
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker login -u "$CI_REGISTRY_USER" -p "$CI_JOB_TOKEN" "$CI_REGISTRY/$CI_PROJECT_PATH"
build:builder:
extends: .base
stage: build
script:
- docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from "$IMAGE_DEPENDANCY" --target dependancies -t "$IMAGE_TEST"
- docker build --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from "$IMAGE_DEPENDANCY" --target dependancies -t "$IMAGE_DEPENDANCY" .
- docker push "$IMAGE_DEPENDANCY"
test:linter: