39 lines
857 B
YAML
39 lines
857 B
YAML
steps:
|
|
- name: docker
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
registry:
|
|
from_secret: REGISTRY_URL
|
|
username:
|
|
from_secret: REGISTRY_USER
|
|
password:
|
|
from_secret: REGISTRY_PASS
|
|
repo: $${REGISTRY_URL}/${CI_REPO}
|
|
tags:
|
|
- latest
|
|
- ${CI_PIPELINE_NUMBER}
|
|
secrets: [ REGISTRY_URL ]
|
|
when:
|
|
- branch: main
|
|
event: [push, manual]
|
|
- name: docker-build
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
privileged: true
|
|
settings:
|
|
registry:
|
|
from_secret: REGISTRY_URL
|
|
username:
|
|
from_secret: REGISTRY_USER
|
|
password:
|
|
from_secret: REGISTRY_PASS
|
|
repo: ${REGISTRY_URL}/${CI_REPO}
|
|
tags:
|
|
- testing-${CI_PIPELINE_NUMBER}
|
|
secrets: [ REGISTRY_URL ]
|
|
when:
|
|
- branch:
|
|
exclude: main
|
|
event: [push, manual]
|
|
depends_on:
|
|
- lint
|