ci
This commit is contained in:
parent
b272297331
commit
981efe747b
1 changed files with 45 additions and 45 deletions
|
|
@ -21,6 +21,51 @@ variables:
|
|||
from_secret: registry_password
|
||||
|
||||
steps:
|
||||
# vendor:
|
||||
# image: *golang
|
||||
# commands: go mod vendor
|
||||
#
|
||||
# test:
|
||||
# image: *golang
|
||||
# depends_on: vendor
|
||||
# commands: go test -cover ./...
|
||||
#
|
||||
# lint-editorconfig:
|
||||
# image: docker.io/mstruebing/editorconfig-checker:2.7.2
|
||||
# when:
|
||||
# event: push
|
||||
#
|
||||
# lint-format:
|
||||
# image: *golang
|
||||
# depends_on: vendor
|
||||
# commands: make formatcheck
|
||||
# when:
|
||||
# event: push
|
||||
#
|
||||
# publish-dryrun:
|
||||
# image: *build_plugin
|
||||
# depends_on: test
|
||||
# pull: true
|
||||
# settings:
|
||||
# <<: *base_buildx_settings
|
||||
# repo: test
|
||||
# dry-run: true
|
||||
# when:
|
||||
# evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
||||
# event: pull_request
|
||||
# branch:
|
||||
# - ${CI_REPO_DEFAULT_BRANCH}
|
||||
# - renovate/*
|
||||
|
||||
publish:
|
||||
image: *build_plugin
|
||||
depends_on: test
|
||||
settings:
|
||||
<<: *base_buildx_settings
|
||||
logins: *login_setting
|
||||
when:
|
||||
event: [push, tag, cron]
|
||||
|
||||
foo:
|
||||
image: gitnet.fr/deblan/docker-buildx
|
||||
volumes:
|
||||
|
|
@ -31,48 +76,3 @@ steps:
|
|||
secrets:
|
||||
- foo
|
||||
- bar
|
||||
|
||||
vendor:
|
||||
image: *golang
|
||||
commands: go mod vendor
|
||||
|
||||
test:
|
||||
image: *golang
|
||||
depends_on: vendor
|
||||
commands: go test -cover ./...
|
||||
|
||||
lint-editorconfig:
|
||||
image: docker.io/mstruebing/editorconfig-checker:2.7.2
|
||||
when:
|
||||
event: push
|
||||
|
||||
lint-format:
|
||||
image: *golang
|
||||
depends_on: vendor
|
||||
commands: make formatcheck
|
||||
when:
|
||||
event: push
|
||||
|
||||
publish-dryrun:
|
||||
image: *build_plugin
|
||||
depends_on: test
|
||||
pull: true
|
||||
settings:
|
||||
<<: *base_buildx_settings
|
||||
repo: test
|
||||
dry-run: true
|
||||
when:
|
||||
evaluate: 'not (CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images")'
|
||||
event: pull_request
|
||||
branch:
|
||||
- ${CI_REPO_DEFAULT_BRANCH}
|
||||
- renovate/*
|
||||
|
||||
publish:
|
||||
image: *build_plugin
|
||||
depends_on: test
|
||||
settings:
|
||||
<<: *base_buildx_settings
|
||||
logins: *login_setting
|
||||
when:
|
||||
event: [push, tag, cron]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue