ci: [fix] add missing stages
This commit is contained in:
parent
ed709517c0
commit
4264900cc4
1 changed files with 4 additions and 2 deletions
|
@ -15,6 +15,7 @@ stages:
|
||||||
- apk add --no-cache make
|
- apk add --no-cache make
|
||||||
|
|
||||||
test:dockerfile-lint:
|
test:dockerfile-lint:
|
||||||
|
stage: test
|
||||||
image: hadolint/hadolint:v1.17.5-alpine
|
image: hadolint/hadolint:v1.17.5-alpine
|
||||||
script:
|
script:
|
||||||
- hadolint ./Dockerfile
|
- hadolint ./Dockerfile
|
||||||
|
@ -28,11 +29,11 @@ test:dockerfile-lint:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
test:docker-image-build:
|
test:docker-image-build:
|
||||||
|
stage: test
|
||||||
extends: .docker-build-setup
|
extends: .docker-build-setup
|
||||||
script:
|
script:
|
||||||
- *install-make
|
- *install-make
|
||||||
- make image
|
- make image
|
||||||
stage: test
|
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- merge_requests
|
- merge_requests
|
||||||
|
@ -43,8 +44,8 @@ test:docker-image-build:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
test:custom-modules:
|
test:custom-modules:
|
||||||
extends: .use-python
|
|
||||||
stage: test
|
stage: test
|
||||||
|
extends: .use-python
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update && apt-get install make
|
- apt-get update && apt-get install make
|
||||||
- pip install ansible==2.9.6
|
- pip install ansible==2.9.6
|
||||||
|
@ -60,6 +61,7 @@ test:custom-modules:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
publish:docker-image:
|
publish:docker-image:
|
||||||
|
stage: publish
|
||||||
extends: .docker-build-setup
|
extends: .docker-build-setup
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
|
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
|
||||||
|
|
Reference in a new issue