Skip to content

Commit

Permalink
Remove gitlab golang steps
Browse files Browse the repository at this point in the history
Since the GitLab pipelines are triggered on pull from gitlab
the golang-specific pipeline steps are not required.

Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Jan 28, 2024
1 parent cd4b684 commit 644bb6f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 70 deletions.
5 changes: 0 additions & 5 deletions .common-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ variables:

stages:
- trigger
- image
- lint
- go-checks
- go-build
- unit-tests
- package-build
- image-build
- test
Expand Down
65 changes: 0 additions & 65 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,71 +15,6 @@
include:
- .common-ci.yml

build-dev-image:
stage: image
script:
- apk --no-cache add make bash
- make .build-image
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
- make .push-build-image

.requires-build-image:
image: "${BUILDIMAGE}"
needs:
- build-dev-image

.go-check:
extends:
- .requires-build-image
stage: go-checks

fmt:
extends:
- .go-check
script:
- make assert-fmt

vet:
extends:
- .go-check
script:
- make vet

lint:
extends:
- .go-check
script:
- make lint
allow_failure: true

ineffassign:
extends:
- .go-check
script:
- make ineffassign
allow_failure: true

misspell:
extends:
- .go-check
script:
- make misspell

go-build:
extends:
- .requires-build-image
stage: go-build
script:
- make build

unit-tests:
extends:
- .requires-build-image
stage: unit-tests
script:
- make coverage


# Define the image build targets
.image-build:
stage: image-build
Expand Down

0 comments on commit 644bb6f

Please sign in to comment.