humble-bot/.woodpecker/docker-deploy.yaml

56 lines
1.4 KiB
YAML
Raw Normal View History

2024-11-05 11:57:30 +01:00
steps:
2024-11-05 12:02:29 +01:00
- name: go-lint
image: golangci/golangci-lint
commands:
- golangci-lint run
when:
event: ["push", "pull_request", "manual"]
2024-11-05 12:03:32 +01:00
# - name: docker-deploy-push
# depends_on:
# - go-lint
# when:
# - event: push
# branch: main
# image: woodpeckerci/plugin-docker-buildx
# settings:
# dockerfile: Dockerfile
# platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
# repo: adoralaura/humble-bot
# registry: https://index.docker.io/v1/
# tags: latest
# username: adoralaura
# password:
# from_secret: dockerhub_token
2024-11-05 11:57:30 +01:00
- name: docker-deploy-tag
when:
- event: tag
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: Dockerfile
platforms: linux/arm/v7,linux/arm64/v8,linux/amd64
repo: adoralaura/humble-bot
registry: https://index.docker.io/v1/
auto_tag: true
username: adoralaura
password:
from_secret: dockerhub_token
- name: docker-deploy-unstable
depends_on:
2024-11-05 12:01:32 +01:00
- go-lint
2024-11-05 11:57:30 +01:00
when:
- event: push
branch: main
image: woodpeckerci/plugin-docker-buildx
settings:
dockerfile: Dockerfile
platforms: linux/arm64/v8,linux/amd64
repo: adoralaura/humble-bot
registry: https://index.docker.io/v1/
tags: unstable
username: adoralaura
password:
from_secret: dockerhub_token