add ci
This commit is contained in:
parent
97bb56fa4a
commit
6c8e0f6671
1 changed files with 4 additions and 36 deletions
|
|
@ -12,20 +12,13 @@ variables:
|
|||
platforms: "linux/amd64,linux/arm64"
|
||||
dockerfile: Dockerfile.multiarch
|
||||
auto_tag: true
|
||||
repo: woodpeckerci/plugin-docker-buildx,codeberg.org/woodpecker-plugins/docker-buildx
|
||||
repo: deblan/docker-buildx
|
||||
- &login_setting
|
||||
# Default DockerHub login
|
||||
- registry: https://index.docker.io/v1/
|
||||
- registry: https://gitnet.fr
|
||||
username:
|
||||
from_secret: docker_username
|
||||
from_secret: registry_user
|
||||
password:
|
||||
from_secret: docker_password
|
||||
# Additional Codeberg login
|
||||
- registry: https://codeberg.org
|
||||
username:
|
||||
from_secret: cb_username
|
||||
password:
|
||||
from_secret: cb_password
|
||||
from_secret: registry_password
|
||||
|
||||
steps:
|
||||
vendor:
|
||||
|
|
@ -73,28 +66,3 @@ steps:
|
|||
when:
|
||||
event: [push, tag, cron]
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
publish_pr_image:
|
||||
image: *build_plugin
|
||||
depends_on: test
|
||||
settings:
|
||||
<<: *base_buildx_settings
|
||||
tag: pull_${CI_COMMIT_PULL_REQUEST}
|
||||
logins: *login_setting
|
||||
when:
|
||||
evaluate: 'CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images"'
|
||||
event: pull_request
|
||||
|
||||
# TODO: replace by plugin-ready-release-go once it supports gitea
|
||||
gitea-release:
|
||||
image: "woodpeckerci/plugin-gitea-release:0.3.1"
|
||||
depends_on: test
|
||||
settings:
|
||||
base_url: https://codeberg.org
|
||||
title: ${CI_COMMIT_TAG}
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
target: main
|
||||
when:
|
||||
event: [tag]
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue