Skip to content
Snippets Groups Projects
Commit dd66d4e7 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

ci(tbc): migrate to component include

parent 01f42ef4
Branches
No related tags found
No related merge requests found
include: include:
# $TBC_NAMESPACE is a group variable; can be globally overridden # $TBC_NAMESPACE is a group variable; can be globally overridden
# Angular template # Angular template
- project: '$TBC_NAMESPACE/angular' - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/angular/gitlab-ci-angular@4
ref: '4' inputs:
file: '/templates/gitlab-ci-angular.yml' cli-image: "registry.hub.docker.com/trion/ng-cli-karma:18.0.0"
# # Playwright template build-args: "build --configuration production"
# - project: 'to-be-continuous/playwright' lint-args: "version"
# ref: '1.4.0' # Playwright template
# file: '/templates/gitlab-ci-playwright.yml' # - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/playwright/gitlab-ci-playwright@1
# inputs:
# image: 'mcr.microsoft.com/playwright:v1.45.2-jammy'
# review-enabled: true
# S3 template # S3 template
- project: '$TBC_NAMESPACE/s3' - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/s3/gitlab-ci-s3@7
ref: '7' inputs:
file: '/templates/gitlab-ci-s3.yml'
variables:
NG_CLI_IMAGE: 'registry.hub.docker.com/trion/ng-cli-karma:18.0.0'
NG_BUILD_ARGS: 'build --configuration production'
NG_LINT_ARGS: 'version'
# deploy: landing page (static/), mkdocs build (public/), Angular build (kicker/dist/) and aggregated kicker (kicker-aggregated/) # deploy: landing page (static/), mkdocs build (public/), Angular build (kicker/dist/) and aggregated kicker (kicker-aggregated/)
S3_DEPLOY_FILES: 'dist/kicker/browser/' deploy-files: "dist/kicker/browser/"
S3_PROD_DISABLED: 'true' prod-disabled: true
S3_STAGING_DISABLED: 'true' staging-disabled: true
S3_REVIEW_PREFIX: ${CI_COMMIT_REF_SLUG} review-prefix: ${CI_COMMIT_REF_SLUG}
PLAYWRIGHT_IMAGE: 'mcr.microsoft.com/playwright:v1.45.2-jammy'
REVIEW_ENABLED: "true"
# override Angular build job to run build only (no tests) # override Angular build job to run build only (no tests)
ng-build: ng-build:
...@@ -41,7 +36,7 @@ pages: ...@@ -41,7 +36,7 @@ pages:
# generate build.info # generate build.info
- echo -e "Build date= $(date)\nGit Commit Ref= $CI_COMMIT_REF_NAME\nGit Commit SHA= $CI_COMMIT_SHA\n" > public/build.info - echo -e "Build date= $(date)\nGit Commit Ref= $CI_COMMIT_REF_NAME\nGit Commit SHA= $CI_COMMIT_SHA\n" > public/build.info
artifacts: artifacts:
name: 'kicker app from $CI_COMMIT_REF_SLUG' name: "kicker app from $CI_COMMIT_REF_SLUG"
paths: paths:
- public - public
expire_in: 1 day expire_in: 1 day
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment