Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Sep 10, 2023
1 parent e42564f commit 0362830
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .gitlab/common.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
stages:
- all
- test

variables:
BOLD_RED: '\e[1;31m'
Expand All @@ -10,7 +10,7 @@ variables:
GO_CI_IMAGE: ${CI_REGISTRY_IMAGE}/ci-golang

build-image:golang:
stage: all
stage: test
image: docker:20
needs: []
rules:
Expand All @@ -24,7 +24,7 @@ build-image:golang:
- docker push ${GO_CI_IMAGE}

.go:
stage: all
stage: test
image: ${GO_CI_IMAGE}
cache:
key: go-mod-cache
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/merge-request.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mr bott:
stage: all
stage: test
needs: []
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
Expand Down
8 changes: 4 additions & 4 deletions .gitlab/release.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- if: ($CI_COMMIT_BRANCH == 'release-1.0' || $CI_COMMIT_TAG != null) && $CI_PIPELINE_SOURCE != 'merge_request_event'

git describe:
stage: all
stage: test
extends: .rules all
needs: []
script:
Expand All @@ -14,7 +14,7 @@ git describe:
dotenv: git.env

docker buildx:
stage: all
stage: test
extends: .rules release
image: docker:20-git
needs: []
Expand All @@ -31,7 +31,7 @@ docker buildx:
- docker build --platform=local -o . ./docker-buildx

build main image:
stage: all
stage: test
extends: .rules release
needs: [ docker buildx ]
image: docker:20
Expand All @@ -49,7 +49,7 @@ build main image:
- docker buildx build --platform linux/amd64,linux/arm64 --push -t ${PRODUCTION_IMAGE} .

build binaries:
stage: all
stage: test
extends: [ .rules release, .go ]
needs: [ git describe ]
# rules:
Expand Down

0 comments on commit 0362830

Please sign in to comment.