File tree 3 files changed +44
-1
lines changed
3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 26
26
go-version : 1.15.x
27
27
- name : Setup Kubernetes
28
28
uses : engineerd/setup-kind@v0.5.0
29
+ with :
30
+ version : " v0.11.1"
29
31
- name : Setup Helm
30
32
uses : fluxcd/pkg/actions/helm@main
31
33
- name : Setup Kustomize
Original file line number Diff line number Diff line change
1
+ name : nightly
2
+ on :
3
+ schedule :
4
+ - cron : ' 0 0 * * *'
5
+ workflow_dispatch :
6
+
7
+ env :
8
+ REPOSITORY : ${{ github.repository }}
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Setup QEMU
16
+ uses : docker/setup-qemu-action@v1
17
+ with :
18
+ platforms : all
19
+ - name : Setup Docker Buildx
20
+ id : buildx
21
+ uses : docker/setup-buildx-action@v1
22
+ with :
23
+ buildkitd-flags : " --debug"
24
+ - name : Build multi-arch container image
25
+ uses : docker/build-push-action@v2
26
+ with :
27
+ push : false
28
+ builder : ${{ steps.buildx.outputs.name }}
29
+ context : .
30
+ file : ./Dockerfile
31
+ platforms : linux/amd64,linux/arm/v7,linux/arm64
32
+ tags : |
33
+ ${{ env.REPOSITORY }}:nightly
Original file line number Diff line number Diff line change 3
3
push :
4
4
tags :
5
5
- ' v*'
6
+ workflow_dispatch :
7
+ inputs :
8
+ tag :
9
+ description : ' image tag prefix'
10
+ default : ' rc'
11
+ required : true
6
12
7
13
env :
8
14
CONTROLLER : ${{ github.event.repository.name }}
17
23
- name : Prepare
18
24
id : prep
19
25
run : |
20
- VERSION=sha -${GITHUB_SHA::8}
26
+ VERSION="${{ github.event.inputs.tag }} -${GITHUB_SHA::8}"
21
27
if [[ $GITHUB_REF == refs/tags/* ]]; then
22
28
VERSION=${GITHUB_REF/refs\/tags\//}
23
29
fi
@@ -68,11 +74,13 @@ jobs:
68
74
docker pull docker.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
69
75
docker pull ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
70
76
- name : Generate release manifests
77
+ if : startsWith(github.ref, 'refs/tags/v')
71
78
run : |
72
79
mkdir -p config/release
73
80
kustomize build ./config/crd > ./config/release/${{ env.CONTROLLER }}.crds.yaml
74
81
kustomize build ./config/manager > ./config/release/${{ env.CONTROLLER }}.deployment.yaml
75
82
- name : Create release
83
+ if : startsWith(github.ref, 'refs/tags/v')
76
84
uses : ncipollo/release-action@v1
77
85
with :
78
86
prerelease : true
You can’t perform that action at this time.
0 commit comments