Skip to content
Snippets Groups Projects
Verified Commit 07b6f2ef authored by Martin Kröning's avatar Martin Kröning :crab:
Browse files

ci: enable buildkit, autodevops

parent 4ac4c8aa
Branches main
No related tags found
No related merge requests found
Pipeline #71768 failed
......@@ -2,21 +2,34 @@
#
# SPDX-License-Identifier: MIT OR Apache-2.0
include:
- project: 'eclipsefdn/it/releng/gitlab-runner-service/gitlab-ci-templates'
file: 'jobs/buildkit.gitlab-ci.yml'
- project: 'eclipsefdn/it/releng/gitlab-runner-service/gitlab-ci-templates'
file: 'pipeline-autodevops.gitlab-ci.yml'
stages:
- check
- build
- test
variables:
CI_REGISTRY_IMAGE: nemometaos/see-interface
buildkit:
extends: .buildkit
format:
stage: check
stage: test
image: golangci/golangci-lint:v1.61-alpine
script: golangci-lint run -v --timeout=30m --no-config --disable-all --enable=gci --enable=gofumpt
lint:
stage: check
stage: test
image: golangci/golangci-lint:v1.61-alpine
script: golangci-lint run -v --timeout=30m --no-config --enable=goconst --enable=gocyclo --enable=gosec --enable=lll --enable=musttag --enable=unconvert
build:
stage: check
stage: test
image: golang:alpine
script:
- mkdir -p dist
......
......@@ -11,7 +11,7 @@ COPY --link go.mod go.sum ./
RUN go mod download && go mod verify
COPY --link . ./
RUN CGO_ENABLED=0 GOOS=linux go build -v -o dist ./cmd/see-interface
RUN CGO_ENABLED=0 GOOS=linux go build -v -o dist/ ./cmd/see-interface
FROM scratch
COPY --from=builder --link /usr/src/see-interface/dist/see-interface /usr/local/bin/see-interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment