-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest go-skel based build scripts
- Loading branch information
1 parent
ba43bcd
commit 7ed6bb2
Showing
17 changed files
with
351 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
./.dapper | ||
./.cache | ||
./dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
--- | ||
kind: pipeline | ||
name: amd64 | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: build | ||
image: rancher/dapper:v0.4.1 | ||
commands: | ||
- dapper ci | ||
volumes: | ||
- name: docker | ||
path: /var/run/docker.sock | ||
|
||
- name: github_binary_release | ||
image: plugins/github-release | ||
settings: | ||
api_key: | ||
from_secret: github_token | ||
prerelease: true | ||
checksum: | ||
- sha256 | ||
checksum_file: CHECKSUMsum-amd64.txt | ||
checksum_flatten: true | ||
files: | ||
- "dist/artifacts/*" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
- name: docker-publish | ||
image: plugins/docker | ||
settings: | ||
dockerfile: package/Dockerfile | ||
password: | ||
from_secret: docker_password | ||
repo: "rancher/local-path-provisioner" | ||
tag: "${DRONE_TAG}-amd64" | ||
username: | ||
from_secret: docker_username | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
volumes: | ||
- name: docker | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
--- | ||
kind: pipeline | ||
name: arm64 | ||
|
||
platform: | ||
os: linux | ||
arch: arm64 | ||
|
||
steps: | ||
- name: build | ||
image: rancher/dapper:v0.4.1 | ||
commands: | ||
- dapper ci | ||
volumes: | ||
- name: docker | ||
path: /var/run/docker.sock | ||
|
||
- name: github_binary_release | ||
image: plugins/github-release | ||
settings: | ||
api_key: | ||
from_secret: github_token | ||
prerelease: true | ||
checksum: | ||
- sha256 | ||
checksum_file: CHECKSUMsum-arm64.txt | ||
checksum_flatten: true | ||
files: | ||
- "dist/artifacts/*" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
- name: docker-publish | ||
image: plugins/docker | ||
settings: | ||
dockerfile: package/Dockerfile | ||
password: | ||
from_secret: docker_password | ||
repo: "rancher/local-path-provisioner" | ||
tag: "${DRONE_TAG}-arm64" | ||
username: | ||
from_secret: docker_username | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
volumes: | ||
- name: docker | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
--- | ||
kind: pipeline | ||
name: arm | ||
|
||
platform: | ||
os: linux | ||
arch: arm | ||
|
||
steps: | ||
- name: build | ||
image: rancher/dapper:v0.4.1 | ||
commands: | ||
- dapper ci | ||
volumes: | ||
- name: docker | ||
path: /var/run/docker.sock | ||
|
||
- name: github_binary_release | ||
image: plugins/github-release | ||
settings: | ||
api_key: | ||
from_secret: github_token | ||
prerelease: true | ||
checksum: | ||
- sha256 | ||
checksum_file: CHECKSUMsum-arm.txt | ||
checksum_flatten: true | ||
files: | ||
- "dist/artifacts/*" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
- name: docker-publish | ||
image: plugins/docker | ||
settings: | ||
dockerfile: package/Dockerfile | ||
password: | ||
from_secret: docker_password | ||
repo: "rancher/local-path-provisioner" | ||
tag: "${DRONE_TAG}-arm" | ||
username: | ||
from_secret: docker_username | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
volumes: | ||
- name: docker | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
--- | ||
kind: pipeline | ||
name: manifest | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: manifest | ||
image: plugins/manifest:1.0.2 | ||
settings: | ||
username: | ||
from_secret: docker_username | ||
password: | ||
from_secret: docker_password | ||
platforms: | ||
- linux/amd64 | ||
- linux/arm64 | ||
- linux/arm | ||
target: "rancher/local-path-provisioner:${DRONE_TAG}" | ||
template: "rancher/local-path-provisioner:${DRONE_TAG}-ARCH" | ||
when: | ||
instance: | ||
- drone-publish.rancher.io | ||
ref: | ||
- refs/head/master | ||
- refs/tags/* | ||
event: | ||
- tag | ||
|
||
depends_on: | ||
- amd64 | ||
- arm64 | ||
- arm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
*dapper* | ||
!Dockerfile.dapper | ||
bin/ | ||
/.dapper | ||
/.cache | ||
/bin | ||
/dist | ||
*.swp | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"linters": { | ||
"disable-all": true, | ||
"enable": [ | ||
"govet", | ||
"golint", | ||
"goimports", | ||
"misspell", | ||
"ineffassign", | ||
"gofmt" | ||
] | ||
}, | ||
"run": { | ||
"skip-files": [ | ||
"/zz_generated_" | ||
], | ||
"deadline": "5m" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
FROM alpine:latest | ||
|
||
COPY bin /bin | ||
|
||
ENTRYPOINT ["/bin/local-path-provisioner"] | ||
FROM alpine | ||
COPY bin/local-path-provisioner /usr/bin/ | ||
CMD ["local-path-provisioner"] |
Oops, something went wrong.