From eca8fd82f4981b9731b7a91ef08e179e694a7555 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 27 Feb 2021 15:24:22 +0800 Subject: [PATCH] init drone file (#2) Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/test-env/pulls/2 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Lunny Xiao Co-authored-by: a1012112796 <1012112796@qq.com> Co-committed-by: a1012112796 <1012112796@qq.com> --- .drone.yml | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..739e0ce --- /dev/null +++ b/.drone.yml @@ -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