Add quality checks
This commit is contained in:
parent
40faffda55
commit
b622a05cc8
@ -6,6 +6,7 @@ cache:
|
|||||||
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- quality
|
||||||
- Docker-hub-build
|
- Docker-hub-build
|
||||||
- Docker-hub-test
|
- Docker-hub-test
|
||||||
- Docker-hub-pushtag
|
- Docker-hub-pushtag
|
||||||
@ -16,3 +17,12 @@ stages:
|
|||||||
include:
|
include:
|
||||||
- 'gitlabci/docker-hub.yml'
|
- 'gitlabci/docker-hub.yml'
|
||||||
- 'gitlabci/docker-hub-arm.yml'
|
- 'gitlabci/docker-hub-arm.yml'
|
||||||
|
|
||||||
|
hadolint:
|
||||||
|
image: hadolint/hadolint:latest-debian
|
||||||
|
stage: quality
|
||||||
|
before_script:
|
||||||
|
- cd $CI_PROJECT_DIR
|
||||||
|
script:
|
||||||
|
- hadolint --ignore DL3008 Dockerfile-arm
|
||||||
|
- hadolint --ignore DL3008 Dockerfile
|
||||||
|
|||||||
@ -40,6 +40,18 @@ docker-hub-test-arm:
|
|||||||
HOSTNAME: squidpipeline
|
HOSTNAME: squidpipeline
|
||||||
needs: ["docker-hub-build-arm"]
|
needs: ["docker-hub-build-arm"]
|
||||||
|
|
||||||
|
dive-arm:
|
||||||
|
image:
|
||||||
|
name: wagoodman/dive:latest
|
||||||
|
entrypoint: [""]
|
||||||
|
dependencies: []
|
||||||
|
stage: Docker-hub-test
|
||||||
|
script:
|
||||||
|
- docker pull $CONTAINER_BUILD_NOPROD_NAME_ARM
|
||||||
|
- dive $CONTAINER_BUILD_NOPROD_NAME_ARM
|
||||||
|
variables:
|
||||||
|
CI: "true"
|
||||||
|
|
||||||
push-docker-hub-arm:
|
push-docker-hub-arm:
|
||||||
stage: Docker-hub-pushtag
|
stage: Docker-hub-pushtag
|
||||||
image: docker:19.03.8-dind
|
image: docker:19.03.8-dind
|
||||||
|
|||||||
@ -35,6 +35,18 @@ docker-hub-test:
|
|||||||
HOSTNAME: squidpipeline
|
HOSTNAME: squidpipeline
|
||||||
needs: ["docker-hub-build"]
|
needs: ["docker-hub-build"]
|
||||||
|
|
||||||
|
dive-arm:
|
||||||
|
image:
|
||||||
|
name: wagoodman/dive:latest
|
||||||
|
entrypoint: [""]
|
||||||
|
dependencies: []
|
||||||
|
stage: Docker-hub-test
|
||||||
|
script:
|
||||||
|
- docker pull $CONTAINER_BUILD_NOPROD_NAME_AMD64
|
||||||
|
- dive $CONTAINER_BUILD_NOPROD_NAME_AMD64
|
||||||
|
variables:
|
||||||
|
CI: "true"
|
||||||
|
|
||||||
push-docker-hub:
|
push-docker-hub:
|
||||||
stage: Docker-hub-pushtag
|
stage: Docker-hub-pushtag
|
||||||
image: docker:dind
|
image: docker:dind
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user