Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple pipelines #1

Merged
merged 94 commits into from
Sep 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
a5065fd
Add missing ctx values
tkushnir May 21, 2021
0f2fd9c
Add new ctx.build.debug option
tkushnir Jun 22, 2021
691e2de
Merge pull request #184 from tkushnir/add-missing-ctx-values
eoinmcafee00 Jun 22, 2021
af7b360
Build drone for mac with m1 chip
alikhil Mar 24, 2021
b4fb139
Update go version to support m1 builds
alikhil Mar 24, 2021
a016c31
Update go version in drone.yml
alikhil Mar 24, 2021
7eefb0b
Update building
alikhil Mar 24, 2021
f90b777
run go mod tidy
alikhil Mar 24, 2021
c0d0629
Merge pull request #186 from tphoney/KazanExpress-master
Jun 22, 2021
3e2bf56
feat(cron): add rm command
jvrplmlmn Mar 10, 2021
c270335
Merge pull request #187 from tphoney/cron-rm
Jun 22, 2021
662f6f4
Add drone cron exec cmd (#180)
Xopherus Jun 22, 2021
9d0e93c
fixes issue were cli required an additional parameter in order to com…
eoinmcafee00 Aug 4, 2021
0bee92b
refactor env variable declaration to one statement
eoinmcafee00 Aug 9, 2021
2a93b26
Merge pull request #188 from drone/defect/vault-secret-cli
eoinmcafee00 Aug 9, 2021
8f2d782
improve Defect/permission template command (#191)
eoinmcafee00 Aug 19, 2021
01b1690
(DRON-113) use ghodss/yaml for yaml pretty print
Aug 16, 2021
338ba6d
Merge pull request #189 from tphoney/drone-113
Aug 20, 2021
6251342
release prep v1.3.1
eoinmcafee00 Aug 20, 2021
19b1181
Merge pull request #192 from drone/release/1.3.1
Aug 20, 2021
f4c360b
(fix) re-enable format option for jsonnet command
Aug 25, 2021
f5d7f67
Merge pull request #193 from tphoney/re-enable_format
Aug 25, 2021
ef4117a
(maint) release prep for v1.3.2
Aug 25, 2021
f25f6e5
Merge pull request #194 from tphoney/release_prep_v1.3.2
Aug 25, 2021
8e538b6
Fix `--stream` combined with `--format` for `jsonnet` (#195)
julienduchesne Aug 26, 2021
12850ef
(maint) release prep v1.3.3
Aug 26, 2021
15de380
Merge pull request #197 from tphoney/release_prep_v1.3.3
Aug 26, 2021
55ae12d
provide update and get info values for repo
eoinmcafee00 Aug 27, 2021
a2ab5c5
bump drone-go
eoinmcafee00 Aug 27, 2021
a7a0f8c
Merge branch 'master' of github.com:drone/drone-cli into feature/dron…
eoinmcafee00 Aug 27, 2021
b8b8a24
Merge pull request #198 from drone/feature/dron-34-auto-cancel-running
Aug 27, 2021
bf16f9f
(fix) fix multi-docs/lists in starlark
Sep 7, 2021
1a4c6c1
Merge pull request #200 from tphoney/starlark_multi_fix
eoinmcafee00 Sep 8, 2021
19d7e39
(maint) release-v1.4.0 prep
Sep 8, 2021
43e52be
Merge pull request #201 from tphoney/release-v1.4.0
Sep 8, 2021
c5e29ab
Update go-jsonnet to version v0.17.0
Sep 13, 2021
75f1ec6
Merge pull request #202 from hjkatz/update-go-jsonnet-version
marko-gacesa Sep 14, 2021
38fdac9
fixes issue where template info command wasn't working
eoinmcafee00 Sep 23, 2021
f535034
Merge pull request #203 from drone/defect/template-info-error
Sep 23, 2021
3ef2c9b
(dron-124) Add new command for build incomplete V2
Sep 28, 2021
78cf239
Merge pull request #204 from tphoney/ReposRunningStatus
Oct 5, 2021
5e386e6
Update README.md
Oct 27, 2021
7c935d1
Merge pull request #205 from harness/tphoney-patch-1
Oct 27, 2021
4ccb423
update libaries with vulnerabilies
eoinmcafee00 Dec 15, 2021
af5da0b
Merge pull request #208 from harness/fix-vulnerabliies
Dec 15, 2021
46f0665
release prep v1.5.0
eoinmcafee00 Jan 4, 2022
92e84c4
Merge pull request #211 from harness/release/v1.5.0
Jan 4, 2022
b4de4da
(feat) remove drone-yaml dependency. use docker compiler for lint
Dec 22, 2021
d646fea
rewrite of exec command, use docker runner code
Feb 8, 2022
0596057
Merge pull request #210 from tphoney/remove_yaml_dependency
Feb 23, 2022
870b6af
add community information
MarieReRe Apr 4, 2022
c992a25
Merge pull request #213 from harness/update-readme
Jun 9, 2022
960e232
(drone-372) use the modern docker runner for exec, upgrade deps
Jul 5, 2022
a0d5adc
Merge pull request #216 from tphoney/dron-372
Jul 6, 2022
dcb1602
(fix): add labels for tooling to query containers (#218)
kameshsampath Aug 1, 2022
a5ac6d2
fix: use .drone.yml as default pipeline file (#219)
kameshsampath Sep 6, 2022
9a17404
(maint) v1.6.0 release prep
Oct 19, 2022
2497a26
Merge pull request #221 from tphoney/prep-v1.6.0
Oct 19, 2022
057d11a
(fix) add secret file to compiler in exec
Oct 20, 2022
35cffc0
(maint) update containerd and docker/distrubution
Oct 20, 2022
02becff
Merge pull request #222 from harness/secrets
Oct 20, 2022
d32315e
(maint) release prep 1.6.1 & go tidy (#223)
Oct 21, 2022
9de573c
fix lack of colors in drone exec output
bradrydzewski Nov 23, 2022
7a70abd
fix: use right parameter name for secrets-file (#226)
kameshsampath Nov 24, 2022
5475142
(maint) prep v1.6.2
Nov 24, 2022
24bea58
Merge pull request #227 from tphoney/prep_v1.6.2
Nov 24, 2022
55e0add
Add support for jpath in jsonnet (#224)
rhiaxion Dec 6, 2022
18faa1f
(maint) v1.7.0 prep
Jan 24, 2023
c75a1a8
Merge pull request #228 from tphoney/prep_v1.7.0
Jan 24, 2023
65934cc
Remove output for resources (#225)
dsotirakis Apr 5, 2023
8393ef9
Bump google.golang.org/grpc from 1.43.0 to 1.53.0
dependabot[bot] Jul 5, 2023
8143771
Merge pull request #234 from harness/dependabot/go_modules/google.gol…
Jul 10, 2023
9a7c91e
Bump github.com/docker/distribution
dependabot[bot] Aug 11, 2023
d5fc368
Merge pull request #233 from harness/dependabot/go_modules/github.com…
Aug 11, 2023
5be6644
Bump github.com/containerd/containerd from 1.6.8 to 1.6.18
dependabot[bot] Aug 11, 2023
bcd1ce7
Merge pull request #229 from harness/dependabot/go_modules/github.com…
Aug 11, 2023
c8720c3
Bump golang.org/x/net from 0.0.0-20220630215102-69896b714898 to 0.7.0
dependabot[bot] Aug 11, 2023
b19dc37
Merge pull request #231 from harness/dependabot/go_modules/golang.org…
Aug 11, 2023
2193eb1
fix: [CI-8942]: Add manifest push support (#235)
smjt-h Aug 11, 2023
9bff972
(fix) setup dependencies in drone build
invalid-email-address Aug 11, 2023
907bafa
Merge pull request #236 from tphoney/bla
Aug 11, 2023
ccaf5d0
(fix) add manifest file
invalid-email-address Aug 11, 2023
f52d32f
Merge pull request #237 from tphoney/add_manifest_file
Aug 11, 2023
add014e
Update .drone.yml
Aug 11, 2023
c935b56
Update manifest.tmpl
Aug 11, 2023
6b9e505
Update .drone.yml
Aug 11, 2023
94c527b
Update .drone.yml
Aug 11, 2023
97633bc
Update manifest.tmpl
Aug 11, 2023
0e54d37
Update manifest.tmpl
Aug 11, 2023
59a1770
Update .drone.yml set platform for arm64
Sep 1, 2023
08d7d8c
[feat]: [CI-8942]: Add alpine support (#240)
smjt-h Sep 5, 2023
c3d2700
fix arm (#241)
smjt-h Sep 5, 2023
6dc4bb9
switch to vm runner
Sep 5, 2023
851ff16
parallelize build and use native infra
invalid-email-address Sep 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .drone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ GOOS=linux GOARCH=ppc64le go build -ldflags "-X main.version=${DRONE_TAG##v}"
GOOS=linux GOARCH=arm go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/linux/arm/drone ./drone
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/windows/amd64/drone.exe ./drone
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/darwin/amd64/drone ./drone
GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/darwin/arm64/drone ./drone

# tar binary files prior to upload
tar -cvzf release/drone_linux_amd64.tar.gz -C release/linux/amd64 drone
Expand All @@ -20,6 +21,7 @@ tar -cvzf release/drone_linux_ppc64le.tar.gz -C release/linux/ppc64le drone
tar -cvzf release/drone_linux_arm.tar.gz -C release/linux/arm drone
tar -cvzf release/drone_windows_amd64.tar.gz -C release/windows/amd64 drone.exe
tar -cvzf release/drone_darwin_amd64.tar.gz -C release/darwin/amd64 drone
tar -cvzf release/drone_darwin_arm64.tar.gz -C release/darwin/arm64 drone

# generate shas for tar files
sha256sum release/*.tar.gz > release/drone_checksums.txt
112 changes: 84 additions & 28 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,88 +1,144 @@
kind: pipeline
type: docker
type: vm
name: default

pool:
use: ubuntu

steps:
- name: test
image: golang:1.18
commands:
- go test ./...

- name: build
image: golang:1.13
image: golang:1.18
commands:
- sh .drone.sh
- sh .drone.sh
depends_on:
- test

- name: publish_latest
image: plugins/docker
settings:
repo: drone/cli
repo: tphoney/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-amd64
when:
event: [push, tag]
depends_on:
- build

- name: publish_alpine
image: plugins/docker
- name: release
image: plugins/github-release
settings:
repo: drone/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: alpine
dockerfile: Dockerfile.alpine
files:
- release/drone_*.tar.gz
- release/drone_checksums.txt
api_key:
from_secret: github_token
when:
event: [push, tag]
event: tag
depends_on:
- build

---

kind: pipeline
type: vm
name: arm

pool:
use: ubuntu_arm64

steps:
- name: build
image: golang:1.18
commands:
- sh .drone.sh
- name: publish_linux_arm
image: plugins/docker
settings:
repo: drone/cli
repo: tphoney/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-arm
dockerfile: Dockerfile.linux.arm
platform: linux/arm/v7
when:
event: [push, tag]
depends_on:
- build

- name: publish_linux_arm64
image: plugins/docker
settings:
repo: drone/cli
repo: tphoney/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: Dockerfile.linux.arm64
platform: linux/arm64
when:
event: [push, tag]
depends_on:
- build

- name: publish_linux_ppc64le
image: plugins/docker
settings:
repo: drone/cli
repo: tphoney/cli
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
auto_tag_suffix: linux-ppc64le
platform: linux/ppc64le
dockerfile: Dockerfile.linux.ppc64le
when:
event: [push, tag]
depends_on:
- build

depends_on:
- default


---

kind: pipeline
type: vm
name: manifest

pool:
use: ubuntu

steps:
- name: manifest
image: plugins/manifest
settings:
auto_tag: true
ignore_missing: true
spec: docker/manifest.tmpl
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: [push, tag]

depends_on:
- default
- arm

- name: release
image: plugins/github-release
settings:
files:
- release/drone_*.tar.gz
- release/drone_checksums.txt
api_key:
from_secret: github_token
when:
event: tag
1 change: 1 addition & 0 deletions .github_changelog_generator
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
since-tag=v1.3.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
drone/drone
release
.env
.vscode
2 changes: 1 addition & 1 deletion BUILDING
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1. Clone the repository
2. Install go 1.13 or later with Go modules enabled
2. Install go 1.16 or later with Go modules enabled
3. Install binaries to $GOPATH/bin

go install ./...
129 changes: 129 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Changelog

## [1.7.0](https://github.com/harness/drone-cli/tree/1.7.0) (2023-01-24)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.6.2...1.7.0)

**Implemented enhancements:**

- Add support for jpath in jsonnet [\#224](https://github.com/harness/drone-cli/pull/224) ([rhiaxion](https://github.com/rhiaxion))

## [v1.6.2](https://github.com/harness/drone-cli/tree/v1.6.2) (2022-11-24)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.6.1...v1.6.2)

**Fixed bugs:**

- fix: use right parameter name for secrets-file [\#226](https://github.com/harness/drone-cli/pull/226) ([kameshsampath](https://github.com/kameshsampath))

**Merged pull requests:**

- \(maint\) prep v1.6.2 [\#227](https://github.com/harness/drone-cli/pull/227) ([tphoney](https://github.com/tphoney))

## [v1.6.1](https://github.com/harness/drone-cli/tree/v1.6.1) (2022-10-21)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.6.0...v1.6.1)

**Fixed bugs:**

- \(fix\) add secret file to compiler in exec [\#222](https://github.com/harness/drone-cli/pull/222) ([tphoney](https://github.com/tphoney))

**Merged pull requests:**

- \(maint\) release prep 1.6.1 & go tidy [\#223](https://github.com/harness/drone-cli/pull/223) ([tphoney](https://github.com/tphoney))

## [v1.6.0](https://github.com/harness/drone-cli/tree/v1.6.0) (2022-10-19)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.5.0...v1.6.0)

**Implemented enhancements:**

- \(drone-372\) use the modern docker runner for exec, upgrade deps [\#216](https://github.com/harness/drone-cli/pull/216) ([tphoney](https://github.com/tphoney))
- \(feat\) start migration from drone-yaml dependency. use docker compiler for lint [\#210](https://github.com/harness/drone-cli/pull/210) ([tphoney](https://github.com/tphoney))

**Fixed bugs:**

- fix: use .drone.yml as default pipeline file [\#219](https://github.com/harness/drone-cli/pull/219) ([kameshsampath](https://github.com/kameshsampath))
- \(fix\): add labels for tooling to query containers [\#218](https://github.com/harness/drone-cli/pull/218) ([kameshsampath](https://github.com/kameshsampath))

**Merged pull requests:**

- \(maint\) v1.6.0 release prep [\#221](https://github.com/harness/drone-cli/pull/221) ([tphoney](https://github.com/tphoney))
- add community information [\#213](https://github.com/harness/drone-cli/pull/213) ([mrsantons](https://github.com/mrsantons))

## [v1.5.0](https://github.com/harness/drone-cli/tree/v1.5.0) (2022-01-04)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.4.0...v1.5.0)

**Implemented enhancements:**

- Update README.md [\#205](https://github.com/harness/drone-cli/pull/205) ([tphoney](https://github.com/tphoney))
- \(dron-124\) Add new command for build incomplete V2 [\#204](https://github.com/harness/drone-cli/pull/204) ([tphoney](https://github.com/tphoney))

**Fixed bugs:**

- update libaries with vulnerabilies [\#208](https://github.com/harness/drone-cli/pull/208) ([eoinmcafee00](https://github.com/eoinmcafee00))
- fixes issue where template info command wasn't working [\#203](https://github.com/harness/drone-cli/pull/203) ([eoinmcafee00](https://github.com/eoinmcafee00))
- Update go-jsonnet to version v0.17.0 [\#202](https://github.com/harness/drone-cli/pull/202) ([hjkatz](https://github.com/hjkatz))

**Merged pull requests:**

- release prep v1.5 [\#211](https://github.com/harness/drone-cli/pull/211) ([eoinmcafee00](https://github.com/eoinmcafee00))

## [v1.4.0](https://github.com/harness/drone-cli/tree/v1.4.0) (2021-09-08)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.3.3...v1.4.0)

**Implemented enhancements:**

- provides ability to update auto-cancel-running flag on repo [\#198](https://github.com/harness/drone-cli/pull/198) ([eoinmcafee00](https://github.com/eoinmcafee00))

**Fixed bugs:**

- \(fix\) fix multi-docs/lists in starlark [\#200](https://github.com/harness/drone-cli/pull/200) ([tphoney](https://github.com/tphoney))

**Merged pull requests:**

- \(maint\) release-v1.4.0 prep [\#201](https://github.com/harness/drone-cli/pull/201) ([tphoney](https://github.com/tphoney))

## [v1.3.3](https://github.com/harness/drone-cli/tree/v1.3.3) (2021-08-26)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.3.2...v1.3.3)

**Fixed bugs:**

- Fix `--stream` combined with `--format` for `jsonnet` [\#195](https://github.com/harness/drone-cli/pull/195) ([julienduchesne](https://github.com/julienduchesne))

**Merged pull requests:**

- \(maint\) release prep v1.3.3 [\#197](https://github.com/harness/drone-cli/pull/197) ([tphoney](https://github.com/tphoney))

## [v1.3.2](https://github.com/harness/drone-cli/tree/v1.3.2) (2021-08-25)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.3.1...v1.3.2)

**Fixed bugs:**

- \(fix\) re-enable format option for jsonnet command [\#193](https://github.com/harness/drone-cli/pull/193) ([tphoney](https://github.com/tphoney))

**Merged pull requests:**

- \(maint\) release prep for v1.3.2 [\#194](https://github.com/harness/drone-cli/pull/194) ([tphoney](https://github.com/tphoney))

## [v1.3.1](https://github.com/harness/drone-cli/tree/v1.3.1) (2021-08-20)

[Full Changelog](https://github.com/harness/drone-cli/compare/v1.3.0...v1.3.1)

**Fixed bugs:**

- Defect/permission template [\#191](https://github.com/harness/drone-cli/pull/191) ([eoinmcafee00](https://github.com/eoinmcafee00))
- \(DRON-113\) use ghodss/yaml for yaml printing [\#189](https://github.com/harness/drone-cli/pull/189) ([tphoney](https://github.com/tphoney))
- fixes issue were cli required an additional parameter in order to com… [\#188](https://github.com/harness/drone-cli/pull/188) ([eoinmcafee00](https://github.com/eoinmcafee00))

**Merged pull requests:**

- release prep v1.3.1 [\#192](https://github.com/harness/drone-cli/pull/192) ([eoinmcafee00](https://github.com/eoinmcafee00))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM drone/ca-certs
FROM amd64/alpine:3.17 as alpine
RUN apk add -U --no-cache ca-certificates

FROM amd64/alpine:3.17
ENV GODEBUG netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

COPY release/linux/amd64/drone /bin/

Expand Down
7 changes: 0 additions & 7 deletions Dockerfile.alpine

This file was deleted.

9 changes: 8 additions & 1 deletion Dockerfile.linux.arm
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM drone/ca-certs
FROM arm32v7/alpine:3.12 as alpine
RUN apk add -U --no-cache ca-certificates


FROM arm32v7/alpine:3.12

ENV GODEBUG netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

COPY release/linux/arm/drone /bin/

Expand Down
9 changes: 8 additions & 1 deletion Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
FROM drone/ca-certs
FROM arm64v8/alpine:3.12 as alpine
RUN apk add -U --no-cache ca-certificates


FROM arm64v8/alpine:3.12

ENV GODEBUG netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

COPY release/linux/arm64/drone /bin/

Expand Down
7 changes: 6 additions & 1 deletion Dockerfile.linux.ppc64le
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM drone/ca-certs
FROM ppc64le/alpine:3.17 as alpine
RUN apk add -U --no-cache ca-certificates

FROM ppc64le/alpine:3.17
ENV GODEBUG netdns=go
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

COPY release/linux/ppc64le/drone /bin/

Expand Down
Loading