test-env/.drone.yml
a1012112796 eca8fd82f4 init drone file (#2)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: gitea/test-env#2
Reviewed-by: 6543 <6543@obermui.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-committed-by: a1012112796 <1012112796@qq.com>
2021-02-27 15:24:22 +08:00

75 lines
1.1 KiB
YAML

---
kind: pipeline
name: linux-amd64
platform:
os: linux
arch: amd64
trigger:
branch:
- master
event:
- push
steps:
- name: publish
pull: always
image: plugins/docker:linux-amd64
settings:
auto_tag: true
auto_tag_suffix: linux-amd64
repo: gitea/test_env
password:
from_secret: docker_password
username:
from_secret: docker_username
---
kind: pipeline
name: linux-arm64
platform:
os: linux
arch: arm64
trigger:
branch:
- master
event:
- push
steps:
- name: publish
pull: always
image: plugins/docker:linux-arm64
settings:
auto_tag: true
auto_tag_suffix: linux-arm64
repo: gitea/test_env
password:
from_secret: docker_password
username:
from_secret: docker_username
---
kind: pipeline
name: dry-run
platform:
os: linux
arch: arm64
trigger:
event:
- pull_request
steps:
- name: dryrun
pull: always
image: plugins/docker:linux-arm64
settings:
dry_run: true
repo: gitea/test_env
tags: linux-arm64