Skip to content

Commit

Permalink
add .gitlab-ci.yml crossplane-contrib#29
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Sushkov (teeverr) committed Jun 3, 2024
1 parent 79863ba commit c37655a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ stages:
image: tde-green-public-docker-local.artifactory.swisscom.com/golang:1.21.2-bookworm
variables:
# GIT_SUBMODULE_STRATEGY: recursive
http_proxy: http://server-proxy.corproot.net:8080
https_proxy: http://server-proxy.corproot.net:8080
noproxy: '127.0.0.1,localhost,code.swisscom.com,git.swisscom.com,artifactory.swisscom.com,bin.swisscom.com,icp.swisscom.com'
HTTP_PROXY: http://server-proxy.corproot.net:8080
HTTPS_PROXY: http://server-proxy.corproot.net:8080
NO_PROXY: '127.0.0.1,localhost,code.swisscom.com,git.swisscom.com,artifactory.swisscom.com,bin.swisscom.com,icp.swisscom.com'
GOPROXY: "https://artifactory.swisscom.com/artifactory/api/go/proxy-golang-go-virtual"
GOFLAGS: '-buildvcs=false'
GOPATH: '/go'
Expand All @@ -29,12 +29,14 @@ lint:
script:
- make submodules
- make vendor vendor.check
- .cache/tools/linux_x86_64/golangci-lint-v1.54.2 cache status
- make -j2 lint
- make -j2 lint || ./cache/tools/linux_x86_64/golangci-lint-v1.54.2 cache statu

build:
stage: build
extends: .base
variables:
# GIT_SUBMODULE_STRATEGY: recursive
HTTPS_PROXY: http://server-proxy.corproot.net:8080
script:
- |
if [[ $CI_COMMIT_TAG =~ ^v?[0-9]{1,4}.[0-9]{1,4}.[0-9]{1,4}$ ]]; then
Expand All @@ -46,5 +48,6 @@ build:
fi
echo "this build classified as ${BUILD_TYPE} based on tag ${CI_COMMIT_TAG}"
- make submodules
- make vendor vendor.check
- make -j2 build.all VERSION=$CI_COMMIT_TAG PLATFORMS=linux_amd64
- make -j2 publish.artifacts PLATFORMS=linux_amd64 XPKG_REG_ORGS=${DESTINATION_REGISTRY}/provider-aws VERSION=${CI_COMMIT_TAG}

0 comments on commit c37655a

Please sign in to comment.