18 lines
594 B
YAML
18 lines
594 B
YAML
steps:
|
|
- name: Build and Publish Docker Image
|
|
when:
|
|
- branch: main
|
|
event: push
|
|
- event: tag
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
platforms: linux/amd64,linux/arm64
|
|
repo: ${CI_REG_HOST}:${CI_REG_PORT}/${CI_REPO_OWNER}/${CI_REPO_NAME}
|
|
tags: latest
|
|
registry: http://${CI_REG_HOST}:${CI_REG_PORT}
|
|
insecure: true
|
|
buildkit_config: "[registry.\"${CI_REG_HOST}:${CI_REG_PORT}\"]\n http = true\n insecure = true"
|
|
username:
|
|
from_secret: CI_REG_USER
|
|
password:
|
|
from_secret: CI_REG_TOKEN |