This commit is contained in:
2023-06-02 14:07:31 +00:00
parent 2f15a27332
commit a7ef465d90
2 changed files with 43 additions and 54 deletions

View File

@@ -1,54 +0,0 @@
kind: pipeline
type: docker
name: Publish docker next
clone:
depth: 1
steps:
- name: Build
image: plugins/docker
pull: if-not-exists
settings:
dockerfile: docker/Dockerfile
context: .
repo: git.yoshino-s.xyz/ds/ds-ui
registry: git.yoshino-s.xyz
username: yoshino-s
password:
from_secret: GITEA_TOKEN
tags: next
---
kind: pipeline
type: docker
name: Release
clone:
depth: 1
steps:
- name: Publish
image: plugins/gitea-release
pull: if-not-exists
settings:
api_key:
from_secret: GITEA_TOKEN
base_url: https://git.yoshino-s.xyz
- name: Publish Tag
image: plugins/docker
pull: if-not-exists
settings:
dockerfile: docker/Dockerfile
context: .
repo: git.yoshino-s.xyz/ds/ds-ui
registry: git.yoshino-s.xyz
username: yoshino-s
password:
from_secret: GITEA_TOKEN
tags:
- ${DRONE_TAG}
- latest
trigger:
event:
- tag

43
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,43 @@
image: alpine:latest
variables:
CS_DEFAULT_BRANCH_IMAGE: $CI_REGISTRY_IMAGE/$CI_DEFAULT_BRANCH:$CI_COMMIT_SHA
CI_DEBUG_TRACE: "true"
CACHE_TTL: 2190h0m0s # three months
kaniko-build:
variables:
KANIKO_ARGS: "--cache=true --cache-repo $CI_REGISTRY_IMAGE --cache-ttl $CACHE_TTL"
stages:
- build
- test
- review
# NOTE: These links point to the latest templates for development in GitLab canonical project,
# therefore the actual templates that were included for Auto DevOps pipelines
# could be different from the contents in the links.
# To view the actual templates, please replace `master` to the specific GitLab version when
# the Auto DevOps pipeline started running e.g. `v13.0.2-ee`.
include:
- template: Kaniko.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Kaniko.gitlab-ci.yml
- template: Jobs/Test.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Test.gitlab-ci.yml
- template: Jobs/Code-Quality.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Code-Quality.gitlab-ci.yml
- template: Jobs/Code-Intelligence.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Code-Intelligence.gitlab-ci.yml
- template: Jobs/Deploy.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml
- template: Jobs/Browser-Performance-Testing.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Browser-Performance-Testing.gitlab-ci.yml
- template: Jobs/Container-Scanning.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Container-Scanning.gitlab-ci.yml
- template: Jobs/Dependency-Scanning.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Dependency-Scanning.gitlab-ci.yml
- template: Jobs/License-Scanning.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/License-Scanning.gitlab-ci.yml
- template: Jobs/SAST.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/SAST.gitlab-ci.yml
- template: Jobs/Secret-Detection.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Secret-Detection.gitlab-ci.yml
# The latest build job generates a dotenv report artifact with a CI_APPLICATION_TAG
# that also includes the image digest. This configures Auto Deploy to receive
# this artifact and use the updated CI_APPLICATION_TAG for deployments.
.auto-deploy:
dependencies: [kaniko-build]
dast_environment_deploy:
dependencies: [kaniko-build]