Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
L3n41c committed Oct 11, 2024
1 parent ad00337 commit ac88e02
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
24 changes: 19 additions & 5 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ variables:
PROJECTNAME: "watermarkpodautoscaler"
TARGET_TAG: v$CI_PIPELINE_ID-$CI_COMMIT_SHORT_SHA
BUILD_DOCKER_REGISTRY: "registry.ddbuild.io/ci"
JOB_DOCKER_IMAGE: "registry.ddbuild.io/ci-containers-project:v2.0.0"
JOB_DOCKER_IMAGE: "registry.ddbuild.io/ci-containers-project:v3.0.0"
DOCKER_REGISTRY_LOGIN_SSM_KEY: docker_hub_login
DOCKER_REGISTRY_PWD_SSM_KEY: docker_hub_pwd
DOCKER_REGISTRY_URL: docker.io
cache: &global_cache
key: ${CI_COMMIT_REF_SLUG}
paths:
- /go/pkg/mod
# cache: &global_cache
# key: ${CI_COMMIT_REF_SLUG}
# paths:
# - /go/pkg/mod

stages:
- build
Expand All @@ -25,12 +25,26 @@ before_script:
build:
stage: build
tags: ["arch:amd64"]
variables:
KUBERNETES_MEMORY_REQUEST: 16Gi
KUBERNETES_MEMORY_LIMIT: 16Gi
KUBERNETES_CPU_REQUEST: 4
KUBERNETES_CPU_LIMIT: 4
GOMEMLIMIT: 15GiB
GOMAXPROCS: 4
script:
- make build

tests:
stage: test
tags: ["arch:amd64"]
variables:
KUBERNETES_MEMORY_REQUEST: 16Gi
KUBERNETES_MEMORY_LIMIT: 16Gi
KUBERNETES_CPU_REQUEST: 4
KUBERNETES_CPU_LIMIT: 4
GOMEMLIMIT: 15GiB
GOMAXPROCS: 4
script:
- make test

Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ patch-crds: bin/$(PLATFORM)/yq

.PHONY: lint
lint: bin/$(PLATFORM)/golangci-lint fmt vet
bin/$(PLATFORM)/golangci-lint run ./...
bin/$(PLATFORM)/golangci-lint run -v ./...


.PHONY: licenses
Expand All @@ -214,7 +214,9 @@ bin/$(PLATFORM)/jq: Makefile
hack/install-jq.sh "bin/$(PLATFORM)" 1.7.1

bin/$(PLATFORM)/golangci-lint: Makefile
hack/install-golangci-lint.sh -b "bin/$(PLATFORM)" v1.61.0
mkdir -p bin/$(PLATFORM)
curl -L -o bin/$(PLATFORM)/golangci-lint https://storage.googleapis.com/lenaic/golangci-lint
chmod +x bin/$(PLATFORM)/golangci-lint

bin/$(PLATFORM)/operator-sdk: Makefile
hack/install-operator-sdk.sh v1.23.0
Expand Down

0 comments on commit ac88e02

Please sign in to comment.