FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 47feac5f authored by E. Kirk's avatar E. Kirk
Browse files

feat: enable publishing example image to gitlab and GCP

parent 7c094f26
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,35 @@ include:
- project: 'uis/devops/continuous-delivery/ci-templates'
file: '/auto-devops/common-pipeline.yml'
ref: v4.0.0
- project: "uis/devops/continuous-delivery/ci-templates"
file: "/auto-devops/artifact-registry.yml"
ref: v4.0.0
# In order to build and publish the example docker image we create a branch and tag based child pipeline
.example:
variables:
EXAMPLE_NAMESPACE: example
CI_PROJECT_NAME: ucam-faas/$EXAMPLE_NAMESPACE
trigger:
include: ${EXAMPLE_NAMESPACE}/.gitlab-ci.yml
strategy: depend
needs: []
example-branch:
extends: .example
variables:
CI_APPLICATION_REPOSITORY: $CI_REGISTRY_IMAGE/$EXAMPLE_NAMESPACE/$CI_COMMIT_REF_SLUG
rules:
- if: '$CI_COMMIT_BRANCH'
example-tag:
extends: .example
variables:
CI_APPLICATION_REPOSITORY: $CI_REGISTRY_IMAGE/$EXAMPLE_NAMESPACE
rules:
- if: '$CI_COMMIT_TAG'
python:tox:
variables:
......
......@@ -4,7 +4,7 @@ services:
example-webapp:
build:
context: .
dockerfile: example/Dockerfile
dockerfile: example.Dockerfile
ports:
- 8080:8080
profiles:
......
File moved
include:
- template: Auto-DevOps.gitlab-ci.yml
- project: "uis/devops/continuous-delivery/ci-templates"
file: "/auto-devops/artifact-registry.yml"
ref: v4.0.0
# Override the "build" job (imported from Auto-DevOps) to cd into this directory before building the docker image.
build:
variables:
DOCKERFILE_PATH: ./example.Dockerfile
variables:
DOCUMENTATION_DISABLED: "1"
DAST_DISABLED: "1"
TEST_DISABLED: "1"
LICENSE_MANAGEMENT_DISABLED: "1"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment