diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d4c17676dc09a7a000daaa92eb7ec6ab242307d6..e0c15a3b110d1e2787936f8b01ef192ce8816fcb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,19 @@ variables: APP_HELM_NAME: cache DOCKER_FILE: deployment/ci/Dockerfile - GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME + GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/backend/rse/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME stages: + - compile - test - build - manifest + - deploy -before_script: - - ln -s /builds /go/src/code.vereign.com - - cd /go/src/code.vereign.com/${CI_PROJECT_PATH} +include: + - project: 'Seal/ci-helpers' + file: 'docker-build.yml' + - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml' lint: image: golangci/golangci-lint:v1.44.2 @@ -20,21 +23,23 @@ lint: script: - golangci-lint --version - golangci-lint run + before_script: + - ln -s /builds /go/src/code.vereign.com + - cd /go/src/code.vereign.com/${CI_PROJECT_PATH} unit tests: image: golang:1.17.7 + extends: .gotest stage: test tags: - amd64-docker - script: - - go version - - go test -race ./... -coverprofile=coverage.out - - go tool cover -func=coverage.out + before_script: [] -include: - - project: 'Seal/ci-helpers' - file: 'docker-build.yml' - - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml' +ppc64le: + extends: .docker-build + stage: build + tags: + - ppc64le-docker amd64: extends: .docker-build @@ -42,14 +47,14 @@ amd64: tags: - amd64-docker -manifest: - extends: .manifest-amd64 +local: + extends: .manifest stage: manifest -manifest-release: - extends: .manifest-release +cloud: + extends: .manifest-cloud stage: manifest -manifest-cloud: - extends: .manifest-cloud +nexus: + extends: .manifest-release stage: manifest diff --git a/.gitlab-ci1.yml b/.gitlab-ci1.yml new file mode 100644 index 0000000000000000000000000000000000000000..add84646ce1b43a4e8f008357f5cb901e730e4f0 --- /dev/null +++ b/.gitlab-ci1.yml @@ -0,0 +1,31 @@ +variables: + APP_HELM_NAME: proof-manager + DOCKER_FILE: deployment/ci/Dockerfile + GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME + +stages: + - build + - manifest + +include: + - project: 'Seal/ci-helpers' + file: 'docker-build.yml' + - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml' + +amd64: + extends: .docker-build + stage: build + tags: + - amd64-docker + +manifest: + extends: .manifest-amd64 + stage: manifest + +manifest-release: + extends: .manifest-release + stage: manifest + +manifest-cloud: + extends: .manifest-cloud + stage: manifest diff --git a/.gitlab-ci2.yml b/.gitlab-ci2.yml new file mode 100644 index 0000000000000000000000000000000000000000..d4c17676dc09a7a000daaa92eb7ec6ab242307d6 --- /dev/null +++ b/.gitlab-ci2.yml @@ -0,0 +1,55 @@ +variables: + APP_HELM_NAME: cache + DOCKER_FILE: deployment/ci/Dockerfile + GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME + +stages: + - test + - build + - manifest + +before_script: + - ln -s /builds /go/src/code.vereign.com + - cd /go/src/code.vereign.com/${CI_PROJECT_PATH} + +lint: + image: golangci/golangci-lint:v1.44.2 + stage: test + tags: + - amd64-docker + script: + - golangci-lint --version + - golangci-lint run + +unit tests: + image: golang:1.17.7 + stage: test + tags: + - amd64-docker + script: + - go version + - go test -race ./... -coverprofile=coverage.out + - go tool cover -func=coverage.out + +include: + - project: 'Seal/ci-helpers' + file: 'docker-build.yml' + - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml' + +amd64: + extends: .docker-build + stage: build + tags: + - amd64-docker + +manifest: + extends: .manifest-amd64 + stage: manifest + +manifest-release: + extends: .manifest-release + stage: manifest + +manifest-cloud: + extends: .manifest-cloud + stage: manifest