File tree 6 files changed +97
-4
lines changed
6 files changed +97
-4
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : " docker"
4
+ directory : " /"
5
+ schedule :
6
+ interval : " daily"
7
+ reviewers :
8
+ - hingew
9
+ - pehbehbeh
10
+ assignees :
11
+ - pehbehbeh
Original file line number Diff line number Diff line change
1
+ name : Build edge image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - develop
7
+
8
+ jobs :
9
+ docker :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ -
13
+ name : Checkout
14
+ uses : actions/checkout@v2
15
+ -
16
+ name : Set up QEMU
17
+ uses : docker/setup-qemu-action@v1
18
+ -
19
+ name : Set up Docker Buildx
20
+ uses : docker/setup-buildx-action@v1
21
+ -
22
+ name : Login to DockerHub
23
+ uses : docker/login-action@v1
24
+ with :
25
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
26
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
27
+ -
28
+ name : Build and push
29
+ uses : docker/build-push-action@v2
30
+ with :
31
+ context : .
32
+ platforms : linux/amd64,linux/arm64
33
+ push : true
34
+ tags : |
35
+ sourceboat/rancher-deploy:edge
Original file line number Diff line number Diff line change
1
+ name : Build stable image
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *.*.*'
7
+
8
+ jobs :
9
+ docker :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ -
13
+ name : Checkout
14
+ uses : actions/checkout@v2
15
+ -
16
+ name : Docker meta
17
+ id : meta
18
+ uses : docker/metadata-action@v3
19
+ with :
20
+ images : |
21
+ sourceboat/rancher-deploy
22
+ flavour : |
23
+ latest=true
24
+ tags : |
25
+ type=semver,pattern={{version}}
26
+ type=semver,pattern={{major}}.{{minor}}
27
+ type=semver,pattern={{major}}
28
+ -
29
+ name : Set up QEMU
30
+ uses : docker/setup-qemu-action@v1
31
+ -
32
+ name : Set up Docker Buildx
33
+ uses : docker/setup-buildx-action@v1
34
+ -
35
+ name : Login to DockerHub
36
+ uses : docker/login-action@v1
37
+ with :
38
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
39
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
40
+ -
41
+ name : Build and push
42
+ uses : docker/build-push-action@v2
43
+ with :
44
+ context : .
45
+ platforms : linux/amd64,linux/arm64
46
+ push : true
47
+ tags : ${{ steps.meta.outputs.tags }}
Original file line number Diff line number Diff line change 1
- FROM rancher/cli :v2.0 .4
1
+ FROM rancher/cli2 :v2.6 .4
2
2
3
3
# install dependencies
4
4
RUN apk update \
@@ -15,7 +15,7 @@ SHELL ["/bin/bash", "-c"]
15
15
RUN curl -sL https://sentry.io/get-cli/ | bash
16
16
17
17
# install kubectl
18
- RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.12.0/ bin/linux/amd64/kubectl \
18
+ RUN curl -LO " https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/ bin/linux/amd64/kubectl" \
19
19
&& mv ./kubectl /usr/local/bin/kubectl
20
20
21
21
# add helper scripts
Original file line number Diff line number Diff line change 1
- MIT License
1
+ # MIT License
2
2
3
3
Copyright (c) Sourceboat GmbH & Co. KG
< [email protected] >
4
4
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ To use this image via GitLab CI add the following to the `.gitlab-ci.yml`:
26
26
``` yml
27
27
deploy :
28
28
stage : deploy
29
- image : sourceboat/rancher-deploy:stable
29
+ image : sourceboat/rancher-deploy:latest
30
30
variables :
31
31
RANCHER_URL : https://rancher.example.com
32
32
K8S_NAMESPACE : my-namespace-name
You can’t perform that action at this time.
0 commit comments