1 Star 0 Fork 1

songqing0353036/kine

forked from NATS/kine 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.drone.yml 4.43 KB
一键复制 编辑 原始数据 按行查看 历史
Brad Davidson 提交于 2023-07-31 20:56 . fix github-release step for arm
---
kind: pipeline
type: docker
name: amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: rancher/dapper:v0.5.0
commands:
- dapper ci
environment:
ARCH: "${DRONE_STAGE_ARCH}"
volumes:
- name: docker
path: /var/run/docker.sock
- name: test
image: rancher/dapper:v0.5.0
commands:
- dapper -f Dockerfile.test.dapper
environment:
ARCH: "${DRONE_STAGE_ARCH}"
volumes:
- name: docker
path: /var/run/docker.sock
when:
instance:
- drone-pr.k3s.io
- name: github_binary_release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
checksum:
- sha256
checksum_file: CHECKSUMsum-amd64.txt
checksum_flatten: true
files:
- dist/artifacts/*
prerelease: true
when:
event:
- tag
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
- name: docker-publish
image: plugins/docker:20.13
settings:
build_args_from_env:
- ARCH
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/kine
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
dockerfile: package/Dockerfile
environment:
ARCH: "${DRONE_STAGE_ARCH}"
DOCKER_BUILDKIT: "1"
when:
event:
- tag
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: arm64
platform:
os: linux
arch: arm64
steps:
- name: build
image: rancher/dapper:v0.5.0
commands:
- dapper ci
environment:
ARCH: "${DRONE_STAGE_ARCH}"
volumes:
- name: docker
path: /var/run/docker.sock
- name: github_binary_release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
checksum:
- sha256
checksum_file: CHECKSUMsum-arm64.txt
checksum_flatten: true
files:
- dist/artifacts/*
prerelease: true
when:
event:
- tag
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
- name: docker-publish
image: plugins/docker:20.13
settings:
build_args_from_env:
- ARCH
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/kine
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
dockerfile: package/Dockerfile
environment:
ARCH: "${DRONE_STAGE_ARCH}"
DOCKER_BUILDKIT: "1"
when:
event:
- tag
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: arm
platform:
os: linux
arch: arm
steps:
- name: build
image: rancher/dapper:v0.5.0
commands:
- dapper ci
environment:
ARCH: "${DRONE_STAGE_ARCH}"
volumes:
- name: docker
path: /var/run/docker.sock
- name: github_binary_release
image: plugins/github-release:linux-arm
settings:
api_key:
from_secret: github_token
checksum:
- sha256
checksum_file: CHECKSUMsum-arm.txt
checksum_flatten: true
files:
- dist/artifacts/*
prerelease: true
when:
event:
- tag
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
- name: docker-publish
image: plugins/docker:linux-arm
settings:
build_args_from_env:
- ARCH
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/kine
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
dockerfile: package/Dockerfile
environment:
ARCH: "${DRONE_STAGE_ARCH}"
# Don't enable buildkit on arm, it will barf on the platform variant mismatch
#DOCKER_BUILDKIT: "1"
when:
event:
- tag
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: manifest
platform:
os: linux
arch: amd64
steps:
- name: manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
- linux/arm64
- linux/arm
target: "rancher/kine:${DRONE_TAG}"
template: "rancher/kine:${DRONE_TAG}-ARCH"
when:
event:
- tag
instance:
- drone-publish.k3s.io
ref:
- refs/head/master
- refs/tags/*
depends_on:
- amd64
- arm64
- arm
...
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/greenway-wlw_admin/kine.git
[email protected]:greenway-wlw_admin/kine.git
greenway-wlw_admin
kine
kine
master

搜索帮助