mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-02 21:52:51 +08:00
chore(CI): disable build arm and arm64
This commit is contained in:
parent
5be4214887
commit
040533909f
@ -4,13 +4,13 @@ local name = 'drone-ssh';
|
|||||||
[
|
[
|
||||||
pipeline.test,
|
pipeline.test,
|
||||||
pipeline.build(name, 'linux', 'amd64'),
|
pipeline.build(name, 'linux', 'amd64'),
|
||||||
pipeline.build(name, 'linux', 'arm64'),
|
// pipeline.build(name, 'linux', 'arm64'),
|
||||||
pipeline.build(name, 'linux', 'arm'),
|
// pipeline.build(name, 'linux', 'arm'),
|
||||||
pipeline.release,
|
pipeline.release,
|
||||||
pipeline.notifications(depends_on=[
|
pipeline.notifications(depends_on=[
|
||||||
'linux-amd64',
|
'linux-amd64',
|
||||||
'linux-arm64',
|
// 'linux-arm64',
|
||||||
'linux-arm',
|
// 'linux-arm',
|
||||||
'release-binary',
|
'release-binary',
|
||||||
]),
|
]),
|
||||||
]
|
]
|
||||||
|
146
.drone.yml
146
.drone.yml
@ -98,150 +98,6 @@ trigger:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- testing
|
- testing
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: linux-arm64
|
|
||||||
platform:
|
|
||||||
arch: arm64
|
|
||||||
os: linux
|
|
||||||
steps:
|
|
||||||
- commands:
|
|
||||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm64/drone-ssh
|
|
||||||
environment:
|
|
||||||
CGO_ENABLED: "0"
|
|
||||||
image: golang:1.19
|
|
||||||
name: build-push
|
|
||||||
pull: always
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
- commands:
|
|
||||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}'
|
|
||||||
-a -o release/linux/arm64/drone-ssh
|
|
||||||
environment:
|
|
||||||
CGO_ENABLED: "0"
|
|
||||||
image: golang:1.19
|
|
||||||
name: build-tag
|
|
||||||
pull: always
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
- commands:
|
|
||||||
- ./release/linux/arm64/drone-ssh --help
|
|
||||||
image: golang:1.19
|
|
||||||
name: executable
|
|
||||||
pull: always
|
|
||||||
- image: plugins/docker:linux-arm64
|
|
||||||
name: dryrun
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
cache_from: appleboy/drone-ssh
|
|
||||||
daemon_off: false
|
|
||||||
dockerfile: docker/Dockerfile.linux.arm64
|
|
||||||
dry_run: true
|
|
||||||
repo: appleboy/drone-ssh
|
|
||||||
tags: linux-arm64
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
- image: plugins/docker:linux-arm64
|
|
||||||
name: publish
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: linux-arm64
|
|
||||||
cache_from: appleboy/drone-ssh
|
|
||||||
daemon_off: "false"
|
|
||||||
dockerfile: docker/Dockerfile.linux.arm64
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: appleboy/drone-ssh
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/master
|
|
||||||
- refs/pull/**
|
|
||||||
- refs/tags/**
|
|
||||||
---
|
|
||||||
depends_on:
|
|
||||||
- testing
|
|
||||||
kind: pipeline
|
|
||||||
name: linux-arm
|
|
||||||
platform:
|
|
||||||
arch: arm
|
|
||||||
os: linux
|
|
||||||
steps:
|
|
||||||
- commands:
|
|
||||||
- go build -v -ldflags '-X main.build=${DRONE_BUILD_NUMBER}' -a -o release/linux/arm/drone-ssh
|
|
||||||
environment:
|
|
||||||
CGO_ENABLED: "0"
|
|
||||||
image: golang:1.19
|
|
||||||
name: build-push
|
|
||||||
pull: always
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
- commands:
|
|
||||||
- go build -v -ldflags '-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}'
|
|
||||||
-a -o release/linux/arm/drone-ssh
|
|
||||||
environment:
|
|
||||||
CGO_ENABLED: "0"
|
|
||||||
image: golang:1.19
|
|
||||||
name: build-tag
|
|
||||||
pull: always
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- tag
|
|
||||||
- commands:
|
|
||||||
- ./release/linux/arm/drone-ssh --help
|
|
||||||
image: golang:1.19
|
|
||||||
name: executable
|
|
||||||
pull: always
|
|
||||||
- image: plugins/docker:linux-arm
|
|
||||||
name: dryrun
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
cache_from: appleboy/drone-ssh
|
|
||||||
daemon_off: false
|
|
||||||
dockerfile: docker/Dockerfile.linux.arm
|
|
||||||
dry_run: true
|
|
||||||
repo: appleboy/drone-ssh
|
|
||||||
tags: linux-arm
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
- image: plugins/docker:linux-arm
|
|
||||||
name: publish
|
|
||||||
pull: always
|
|
||||||
settings:
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: linux-arm
|
|
||||||
cache_from: appleboy/drone-ssh
|
|
||||||
daemon_off: "false"
|
|
||||||
dockerfile: docker/Dockerfile.linux.arm
|
|
||||||
password:
|
|
||||||
from_secret: docker_password
|
|
||||||
repo: appleboy/drone-ssh
|
|
||||||
username:
|
|
||||||
from_secret: docker_username
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- pull_request
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/heads/master
|
|
||||||
- refs/pull/**
|
|
||||||
- refs/tags/**
|
|
||||||
---
|
|
||||||
depends_on:
|
|
||||||
- testing
|
|
||||||
kind: pipeline
|
|
||||||
name: release-binary
|
name: release-binary
|
||||||
platform:
|
platform:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
@ -273,8 +129,6 @@ trigger:
|
|||||||
---
|
---
|
||||||
depends_on:
|
depends_on:
|
||||||
- linux-amd64
|
- linux-amd64
|
||||||
- linux-arm64
|
|
||||||
- linux-arm
|
|
||||||
- release-binary
|
- release-binary
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: notifications
|
name: notifications
|
||||||
|
2
Makefile
2
Makefile
@ -133,7 +133,7 @@ deps-backend:
|
|||||||
$(GO) install $(XGO_PACKAGE)
|
$(GO) install $(XGO_PACKAGE)
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: release-windows release-linux release-darwin release-copy release-compress release-check
|
release: release-linux release-copy release-compress release-check
|
||||||
|
|
||||||
$(DIST_DIRS):
|
$(DIST_DIRS):
|
||||||
mkdir -p $(DIST_DIRS)
|
mkdir -p $(DIST_DIRS)
|
||||||
|
Loading…
Reference in New Issue
Block a user