2023-10-22 09:12:49 +00:00
|
|
|
steps:
|
|
|
|
docker-build-only:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
privileged: true
|
|
|
|
settings:
|
|
|
|
repo: git.faercol.me/polyculeconnect/polyculeconnect
|
|
|
|
tags: latest
|
|
|
|
dry_run: true
|
|
|
|
platforms:
|
|
|
|
- linux/amd64
|
|
|
|
# - linux/arm64
|
2023-10-22 20:13:14 +00:00
|
|
|
environment:
|
|
|
|
- GOPROXY=http://goproxy.home:3000,direct
|
2023-10-22 09:12:49 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
|
|
|
- event: push
|
|
|
|
branch:
|
|
|
|
exclude: [main]
|
|
|
|
|
|
|
|
docker-build-push:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
privileged: true
|
|
|
|
settings:
|
|
|
|
repo: git.faercol.me/polyculeconnect/polyculeconnect
|
|
|
|
registry: git.faercol.me
|
|
|
|
tags: latest
|
|
|
|
username:
|
|
|
|
from_secret: git_username
|
|
|
|
password:
|
|
|
|
from_secret: git_password
|
|
|
|
platforms:
|
|
|
|
- linux/amd64
|
|
|
|
# - linux/arm64
|
2023-10-22 20:13:14 +00:00
|
|
|
environment:
|
|
|
|
- GOPROXY=http://goproxy.home:3000,direct
|
2023-10-22 09:12:49 +00:00
|
|
|
when:
|
|
|
|
- event: push
|
|
|
|
branch: main
|
|
|
|
|
|
|
|
docker-push-tag:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
privileged: true
|
|
|
|
settings:
|
|
|
|
registry: git.faercol.me
|
|
|
|
repo: git.faercol.me/polyculeconnect/polyculeconnect
|
|
|
|
auto_tag: true
|
|
|
|
platforms:
|
|
|
|
- linux/amd64
|
|
|
|
# - linux/arm64
|
|
|
|
username:
|
|
|
|
from_secret: git_username
|
|
|
|
password:
|
|
|
|
from_secret: git_password
|
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- test
|
|
|
|
|
|
|
|
when:
|
|
|
|
event: [push, tag]
|