include: - template: Security/Secret-Detection.gitlab-ci.yml These security jobs run automatically, enforcing "shift-left" security. Environments Track deployments by defining environments:
variables: DOCKER_REGISTRY: registry.gitlab.com APP_NAME: myapp job: script: - docker build -t $DOCKER_REGISTRY/$APP_NAME . automating devops with gitlab ci/cd pipelines read online
build: stage: build-image image: docker:20.10.16 services: - docker:20.10.16-dind script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker build -t $IMAGE_TAG . - docker push $IMAGE_TAG only: - main include: - template: Security/Secret-Detection