-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.yml
85 lines (79 loc) · 2.3 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: 2.1
orbs:
architect: giantswarm/architect@4.24.0
jobs:
debug-tag:
docker:
- image: cimg/base:2022.08
steps:
- checkout
- run: |
echo "running for tag ${CIRCLE_TAG}"
update-krew-index:
docker:
- image: cimg/go:1.18.5
environment:
KREW_RELEASE_BOT_VERSION: v0.0.38
GITHUB_ACTIONS: "true"
GITHUB_REPOSITORY: giantswarm/kubectl-gs
GITHUB_ACTOR: architectbot
steps:
- checkout
- run:
name: Configure krew-release-bot
command: |
echo "using krew-release-bot version ${KREW_RELEASE_BOT_VERSION}"
curl -LO https://github.com/rajatjindal/krew-release-bot/releases/download/${KREW_RELEASE_BOT_VERSION}/krew-release-bot_${KREW_RELEASE_BOT_VERSION}_linux_amd64.tar.gz
tar -xvf krew-release-bot_${KREW_RELEASE_BOT_VERSION}_linux_amd64.tar.gz
echo export GITHUB_REF=refs/tags/${CIRCLE_TAG} >> "$BASH_ENV"
echo export GITHUB_WORKSPACE=$(pwd) >> "$BASH_ENV"
- run:
name: Execute krew-release-bot
command: ./krew-release-bot action
workflows:
go-build:
jobs:
- architect/go-build:
name: go-build
binary: kubectl-gs
filters:
tags:
only: /^v.*/
- architect/push-to-docker:
name: push-kgs-to-quay
context: architect
image: "quay.io/giantswarm/kubectl-gs"
username_envar: "QUAY_USERNAME"
password_envar: "QUAY_PASSWORD"
requires:
- go-build
filters:
# Needed to trigger job also on git tag.
tags:
only: /^v.*/
update-krew:
jobs:
- debug-tag:
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
- request-manual-approval:
type: approval
requires:
- debug-tag
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/
- update-krew-index:
requires:
- debug-tag
- request-manual-approval
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*(-.*)*/