Skip to content

Commit

Permalink
fix(autok3s): remove useless ci steps
Browse files Browse the repository at this point in the history
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
  • Loading branch information
rancher-sy-bot committed Sep 25, 2020
1 parent c1e514a commit 80f393f
Showing 1 changed file with 7 additions and 191 deletions.
198 changes: 7 additions & 191 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ depends_on:
- lint
---
kind: pipeline
name: compress-amd64
name: cross-build
platform:
os: linux
arch: amd64
Expand All @@ -88,190 +88,7 @@ steps:
- wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
- tar -xvf upx-3.96-amd64_linux.tar.xz
- cp upx-3.96-amd64_linux/upx /usr/bin/
- upx --brute dist/autok3s_linux_amd64
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
depends_on:
- build
- name: github_linux_amd64_binary_release
image: ibuildthecloud/github-release:v0.0.1
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-amd64.txt
checksum_flatten: true
files:
- "dist/autok3s_linux_amd64"
when:
event:
- tag
depends_on:
- compress
- name: github_darwin_amd64_binary_release
image: ibuildthecloud/github-release:v0.0.1
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-darwin-amd64.txt
checksum_flatten: true
files:
- "dist/autok3s_darwin_amd64"
when:
event:
- tag
depends_on:
- compress
- name: github_windows_amd64_binary_release
image: ibuildthecloud/github-release:v0.0.1
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-windows-amd64.txt
checksum_flatten: true
files:
- "dist/autok3s_windows_amd64.exe"
when:
event:
- tag
depends_on:
- compress
- name: github_windows_386_binary_release
image: ibuildthecloud/github-release:v0.0.1
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-windows-386.txt
checksum_flatten: true
files:
- "dist/autok3s_windows_386.exe"
when:
event:
- tag
depends_on:
- compress
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
include:
- push
- pull_request
- tag
node:
instance: agent-amd64
depends_on:
- integration-test
---
kind: pipeline
name: compress-arm64
platform:
os: linux
arch: arm64
steps:
- name: build
image: maiwj/drone-dapper:v0.4.2
privileged: true
environment:
BY: dapper
commands:
- make autok3s build only
volumes:
- name: docker
path: /var/run/docker.sock
- name: compress
image: maiwj/drone-dapper:v0.4.2
privileged: true
environment:
BY: dapper
commands:
- wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-arm64_linux.tar.xz
- tar -xvf upx-3.96-arm64_linux.tar.xz
- cp upx-3.96-arm64_linux/upx /usr/bin/
- upx --brute dist/autok3s_linux_arm64
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
depends_on:
- build
- name: github_binary_release
image: ibuildthecloud/github-release:v0.0.1
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-arm64.txt
checksum_flatten: true
files:
- "dist/autok3s_linux_arm64"
when:
event:
- tag
depends_on:
- compress
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
include:
- push
- pull_request
- tag
node:
instance: agent-arm64
depends_on:
- integration-test
---
kind: pipeline
name: compress-arm
platform:
os: linux
arch: arm
steps:
- name: build
image: maiwj/drone-dapper:v0.4.2
privileged: true
environment:
BY: dapper
commands:
- make autok3s build only
volumes:
- name: docker
path: /var/run/docker.sock
- name: compress
image: maiwj/drone-dapper:v0.4.2
privileged: true
environment:
BY: dapper
commands:
- wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-arm_linux.tar.xz
- tar -xvf upx-3.96-arm_linux.tar.xz
- cp upx-3.96-arm_linux/upx /usr/bin/
- upx --brute dist/autok3s_linux_arm
- upx -9 dist/autok3s_*
volumes:
- name: docker
path: /var/run/docker.sock
Expand All @@ -288,10 +105,10 @@ steps:
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-arm.txt
checksum_file: CHECKSUMsum.txt
checksum_flatten: true
files:
- "dist/autok3s_linux_arm"
- "dist/autok3s_*"
when:
event:
- tag
Expand All @@ -308,7 +125,7 @@ trigger:
- pull_request
- tag
node:
instance: agent-arm
instance: agent-amd64
depends_on:
- integration-test
---
Expand Down Expand Up @@ -359,6 +176,5 @@ trigger:
node:
instance: agent-amd64
depends_on:
- compress-amd64
- compress-arm64
- compress-arm
- cross-build

0 comments on commit 80f393f

Please # to comment.