Skip to content
Snippets Groups Projects
Commit 91deaf32 authored by Georgi Michev's avatar Georgi Michev
Browse files

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

Source as submodule

See merge request !1
parents 517e4d61 ee3dd49f
No related branches found
No related tags found
1 merge request!1Source as submodule
Pipeline #67426 failed
---
variables: variables:
HELPERS_FILE: helm-package.yml HELPERS_FILE: build-eclipse.yml
HELM_HELPERS_FILE: helm-eclipse.yml
image: $HELM_IMAGE APP_HELM_NAME: cache
DOCKER_FILE: app/deployment/ci/Dockerfile
include:
- project: '${HELPERS_PATH}'
file: '${HELPERS_FILE}'
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/cache.git
branch = main
app @ 127b4ae5
Subproject commit 127b4ae5eb0d105803afc87112e881c5f0eb8921
...@@ -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/cache name: tsa/cache
# -- 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