-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51112fe
commit cb89e69
Showing
2,037 changed files
with
726,612 additions
and
1 deletion.
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,4 @@ | ||
./.dapper | ||
./.cache | ||
./.trash-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: 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/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/helm-controller" | ||
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: 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/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/helm-controller" | ||
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: 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/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/helm-controller" | ||
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/helm-controller:${DRONE_TAG}" | ||
template: "rancher/helm-controller:${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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
/.dapper | ||
/.idea | ||
/bin | ||
/dist | ||
helm-controller |
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,26 @@ | ||
FROM golang:1.12.1-alpine3.9 | ||
|
||
RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates | ||
RUN go get -d golang.org/x/lint/golint && \ | ||
git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \ | ||
go install golang.org/x/lint/golint && \ | ||
rm -rf /go/src /go/pkg | ||
RUN mkdir -p /go/src/golang.org/x && \ | ||
cd /go/src/golang.org/x && git clone https://github.com/golang/tools && \ | ||
git -C /go/src/golang.org/x/tools checkout -b current aa82965741a9fecd12b026fbb3d3c6ed3231b8f8 && \ | ||
go install golang.org/x/tools/cmd/goimports | ||
RUN rm -rf /go/src /go/pkg | ||
RUN if [ "${ARCH}" == "amd64" ]; then \ | ||
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.15.0; \ | ||
fi | ||
|
||
ENV DAPPER_ENV REPO TAG DRONE_TAG | ||
ENV DAPPER_SOURCE /go/src/github.com/rancher/helm-controller/ | ||
ENV DAPPER_OUTPUT ./bin ./dist | ||
ENV DAPPER_DOCKER_SOCKET true | ||
ENV TRASH_CACHE ${DAPPER_SOURCE}/.trash-cache | ||
ENV HOME ${DAPPER_SOURCE} | ||
WORKDIR ${DAPPER_SOURCE} | ||
|
||
ENTRYPOINT ["./scripts/entry"] | ||
CMD ["ci"] |
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,26 @@ | ||
FROM golang:1.12.1-alpine3.9 | ||
|
||
RUN apk -U add bash git gcc musl-dev docker vim less file curl wget ca-certificates | ||
RUN go get -d golang.org/x/lint/golint && \ | ||
git -C /go/src/golang.org/x/lint/golint checkout -b current 06c8688daad7faa9da5a0c2f163a3d14aac986ca && \ | ||
go install golang.org/x/lint/golint && \ | ||
rm -rf /go/src /go/pkg | ||
RUN mkdir -p /go/src/golang.org/x && \ | ||
cd /go/src/golang.org/x && git clone https://github.com/golang/tools && \ | ||
git -C /go/src/golang.org/x/tools checkout -b current aa82965741a9fecd12b026fbb3d3c6ed3231b8f8 && \ | ||
go install golang.org/x/tools/cmd/goimports | ||
RUN rm -rf /go/src /go/pkg | ||
RUN if [ "${ARCH}" == "amd64" ]; then \ | ||
curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.15.0; \ | ||
fi | ||
|
||
ENV DAPPER_ENV REPO TAG DRONE_TAG | ||
ENV DAPPER_SOURCE /go/src/github.com/rancher/helm-controller/ | ||
ENV DAPPER_OUTPUT ./bin ./dist | ||
ENV DAPPER_DOCKER_SOCKET true | ||
ENV TRASH_CACHE ${DAPPER_SOURCE}/.trash-cache | ||
ENV HOME ${DAPPER_SOURCE} | ||
WORKDIR ${DAPPER_SOURCE} | ||
|
||
ENTRYPOINT ["./scripts/entry"] | ||
CMD ["ci"] |
Oops, something went wrong.