Skip to content
Snippets Groups Projects
Commit ac37dbd4 authored by Kalin Daskalov's avatar Kalin Daskalov
Browse files

Merge branch 'source-as-submodule' into 'main'

Source as submodule

See merge request !1
parents 21f66955 1ef53f16
Branches
Tags
1 merge request!1Source as submodule
Pipeline #67506 passed
image: $HELM_IMAGE ---
variables:
include: HELPERS_FILE: build-eclipse.yml
- project: 'gaiax/tsa/ci-helpers' HELM_HELPERS_FILE: helm-eclipse.yml
file: 'helm-package.yml' APP_HELM_NAME: task
DOCKER_FILE: app/deployment/ci/Dockerfile
stages: stages:
- test
- build
- manifest
- lint - lint
- package - package
- deploy
include:
- project: "${HELPERS_PATH}"
file: 'build-eclipse.yml'
- template: "Workflows/Branch-Pipelines.gitlab-ci.yml"
- project: "${HELPERS_PATH}"
file: 'helm-eclipse.yml'
lint:
image: golangci/golangci-lint:latest
stage: test
tags:
- amd64-docker
script:
- golangci-lint --version
- golangci-lint run
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}/app
unit tests:
image: golang:1.21.3
stage: test
tags:
- amd64-docker
script:
- go version
- go test $(go list ./... | grep -v /integration) -race -coverprofile=coverage.out
- go tool cover -func=coverage.out
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}/app
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck:
image: golang:1.21.3
stage: test
tags:
- amd64-docker
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}/app
script:
- go version
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
amd64:
extends: .docker-build
stage: build
tags:
- amd64-docker
manifest:
extends: .manifest-amd64
stage: manifest
cloud:
extends: .manifest-cloud
stage: manifest
release:
extends: .manifest-release
stage: manifest
helm-lint: helm-lint:
image: ${HELM_IMAGE}
extends: .helm-lint extends: .helm-lint
stage: lint stage: lint
tags: tags:
- amd64-docker - amd64-docker
helm-package: helm-package:
image: ${HELM_IMAGE}
extends: .helm-package extends: .helm-package
stage: package stage: package
tags: tags:
- amd64-docker - amd64-docker
needs: ["helm-lint"]
[submodule "app"]
path = app
url = https://gitlab.eclipse.org/eclipse/xfsc/tsa/task.git
branch = main
apiVersion: v1 apiVersion: v1
appVersion: v1.1.1 appVersion: v1.1.2
description: task deployment description: task deployment
name: task name: task
version: 1.1.1 version: 1.1.2
icon: "https://www.vereign.com/wp-content/themes/vereign2020/images/vereign-logo.svg" icon: "https://www.vereign.com/wp-content/themes/vereign2020/images/vereign-logo.svg"
app @ 5bd23e58
Subproject commit 5bd23e5882cb0c2098dbc830a6e00a161add8e14
...@@ -8,7 +8,7 @@ nameOverride: "" ...@@ -8,7 +8,7 @@ nameOverride: ""
image: image:
repository: eu.gcr.io/vrgn-infra-prj repository: eu.gcr.io/vrgn-infra-prj
# -- Image name # -- Image name
name: gaiax/task name: tsa/task
# -- Image tag # -- Image tag
# Uses .Chart.AppVersion if empty # Uses .Chart.AppVersion if empty
tag: "" tag: ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment