6da3c49222
- /gitlabci/docker-hub.yml - /.gitlab-ci.yml
42 lines
870 B
YAML
42 lines
870 B
YAML
workflow:
|
|
rules:
|
|
- if: $CI_COMMIT_BRANCH
|
|
|
|
workflow:
|
|
name: "$CI_COMMIT_TITLE: Squid auto rebuild docker from http://www.squid-cache.org/Versions images https://hub.docker.com/r/fredbcode"
|
|
|
|
cache:
|
|
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
|
|
|
|
# Build on tmpfs
|
|
variables:
|
|
GIT_CLONE_PATH: $CI_BUILDS_DIR/tmpfs/$CI_PROJECT_NAME/$CI_COMMIT_BRANCH
|
|
|
|
stages:
|
|
- quality
|
|
- Docker-hub-build
|
|
- Docker-hub-test
|
|
- Docker-hub-pushtag
|
|
# ARM
|
|
- Docker-hub-build-arm
|
|
- Docker-hub-test-arm
|
|
- Docker-hub-pushtag-arm
|
|
- test
|
|
include:
|
|
- template: Security/SAST.gitlab-ci.yml
|
|
|
|
include:
|
|
- 'gitlabci/docker-hub.yml'
|
|
- 'gitlabci/docker-hub-arm.yml'
|
|
- template: Security/SAST-IaC.latest.gitlab-ci.yml
|
|
|
|
hadolint:
|
|
image: hadolint/hadolint:latest-debian
|
|
stage: quality
|
|
before_script:
|
|
- cd $CI_PROJECT_DIR
|
|
script:
|
|
- hadolint --ignore DL3008 Dockerfile
|
|
|
|
|