polycule-connect/.woodpecker/deploy.yml
chapeau 4d0be8fe49
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
Use goproxy
2023-10-22 22:32:35 +02:00

69 lines
1.5 KiB
YAML

steps:
docker-build-only:
image: woodpeckerci/plugin-docker-buildx
privileged: true
settings:
repo: git.faercol.me/polyculeconnect/polyculeconnect
tags: latest
dry_run: true
build_args_from_env:
- GOPROXY
platforms:
- linux/amd64
# - linux/arm64
environment:
- GOPROXY=http://goproxy.home:3000
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
build_args_from_env:
- GOPROXY
username:
from_secret: git_username
password:
from_secret: git_password
platforms:
- linux/amd64
# - linux/arm64
environment:
- GOPROXY=http://goproxy.home:3000
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
build_args_from_env:
- GOPROXY
platforms:
- linux/amd64
# - linux/arm64
username:
from_secret: git_username
password:
from_secret: git_password
environment:
- GOPROXY=http://goproxy.home:3000
when:
- event: tag
depends_on:
- test
when:
event: [push, tag]