Skip to content

Commit

Permalink
fix(autok3s): add missing binary
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 85568af commit 363afa2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 5 deletions.
57 changes: 54 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,23 @@ steps:
volumes:
- name: docker
path: /var/run/docker.sock
- 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-amd64.txt
checksum_flatten: true
files:
- "dist/autok3s_*"
when:
event:
- tag
depends_on:
- build
- name: package
image: maiwj/drone-dapper:v0.4.2
environment:
Expand Down Expand Up @@ -136,6 +153,23 @@ steps:
volumes:
- name: docker
path: /var/run/docker.sock
- 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_*"
when:
event:
- tag
depends_on:
- build
- name: package
image: maiwj/drone-dapper:v0.4.2
environment:
Expand Down Expand Up @@ -195,6 +229,23 @@ steps:
volumes:
- name: docker
path: /var/run/docker.sock
- 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-arm.txt
checksum_flatten: true
files:
- "dist/autok3s_*"
when:
event:
- tag
depends_on:
- build
- name: package
image: maiwj/drone-dapper:v0.4.2
environment:
Expand Down Expand Up @@ -267,13 +318,13 @@ steps:
- name: release-note
path: /release-note
- name: release
image: maiwj/drone-releaser:v0.1.0
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- "dist/autok3s_*.yaml"
prerelease: true
overwrite: true
note: /release-note/CHANGELOG.md
volumes:
- name: release-note
path: /release-note
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
# Compile the resulting file
dist/
bin/
sha256sum*
main

## Dapper temporary files
Expand Down
5 changes: 3 additions & 2 deletions hack/make-rules/autok3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function build() {
-ldflags "${version_flags} ${flags} ${ext_flags}" \
-o "${CURR_DIR}/bin/autok3s_${os}_${arch}" \
"${CURR_DIR}/main.go"
cp -f "${CURR_DIR}/bin/autok3s_${os}_${arch}" "${CURR_DIR}/dist/autok3s_${os}_${arch}"
done

autok3s::log::info "...done"
Expand All @@ -100,7 +101,7 @@ function package() {
[[ "${1:-}" != "only" ]] && build
autok3s::log::info "packaging autok3s..."

local repo=${REPO:-zhenyangzhao}
local repo=${REPO:-cnrancher}
local image_name=${IMAGE_NAME:-autok3s}
local tag=${TAG:-${GIT_VERSION}}

Expand Down Expand Up @@ -135,7 +136,7 @@ function deploy() {
[[ "${1:-}" != "only" ]] && package
autok3s::log::info "deploying autok3s..."

local repo=${REPO:-zhenyangzhao}
local repo=${REPO:-cnrancher}
local image_name=${IMAGE_NAME:-autok3s}
local tag=${TAG:-${GIT_VERSION}}

Expand Down

0 comments on commit 363afa2

Please # to comment.