init drone file (#2)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/test-env/pulls/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>
This commit is contained in:
a1012112796 2021-02-27 15:24:22 +08:00 committed by Lunny Xiao
parent 51e9b9bd74
commit eca8fd82f4
1 changed files with 74 additions and 0 deletions

74
.drone.yml Normal file
View File

@ -0,0 +1,74 @@
---
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