File tree 5 files changed +17
-30
lines changed
5 files changed +17
-30
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
release :
9
- types : [released]
9
+ types :
10
+ - released
10
11
11
12
jobs :
12
13
docker-images :
13
- runs-on : ubuntu-latest
14
+ runs-on : ubuntu-20.04
14
15
steps :
15
- - uses : actions/checkout@v2
16
+ - name : Checkout
17
+ uses : actions/checkout@v2
16
18
17
19
- name : Set up QEMU
18
20
uses : docker/setup-qemu-action@v1
19
21
20
22
- name : Set up Docker Buildx
21
23
uses : docker/setup-buildx-action@v1
22
24
25
+ - name : Login to Docker Hub
26
+ uses : docker/login-action@v1
27
+ with :
28
+ username : ${{ secrets.DOCKER_USERNAME }}
29
+ password : ${{ secrets.DOCKER_PASSWORD }}
30
+
23
31
- name : Run ./ci/steps/docker-buildx-push.sh
24
32
run : ./ci/steps/docker-buildx-push.sh
25
33
env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
28
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
34
+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 2.0.1
18
+ version : 2.1.0
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ metadata:
18
18
{{- toYaml . | nindent 4 }}
19
19
{{- end }}
20
20
spec :
21
+ {{- if .Values.ingress.ingressClassName }}
22
+ ingressClassName : {{ .Values.ingress.ingressClassName }}
23
+ {{- end }}
21
24
{{- if .Values.ingress.tls }}
22
25
tls :
23
26
{{- range .Values.ingress.tls }}
Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ service:
35
35
ingress :
36
36
enabled : false
37
37
# annotations:
38
- # kubernetes.io/ingress.class: nginx
39
38
# kubernetes.io/tls-acme: "true"
40
39
# hosts:
41
40
# - host: code-server.example.loc
42
41
# paths:
43
42
# - /
44
-
43
+ ingressClassName : " "
45
44
# tls:
46
45
# - secretName: code-server
47
46
# hosts:
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -euo pipefail
3
3
4
- # See if this version already exists on Docker Hub.
5
- function version_exists() {
6
- local output
7
- output=$( curl --silent " https://index.docker.io/v1/repositories/codercom/code-server/tags/$VERSION " )
8
- if [[ $output == " Tag not found" ]]; then
9
- return 1
10
- else
11
- return 0
12
- fi
13
- }
14
-
15
4
main () {
16
5
cd " $( dirname " $0 " ) /../.."
17
6
18
7
# ci/lib.sh sets VERSION and provides download_artifact here
19
8
source ./ci/lib.sh
20
9
21
- if version_exists; then
22
- echo " $VERSION is already pushed"
23
- return
24
- fi
25
-
26
10
# Download the release-packages artifact
27
11
download_artifact release-packages ./release-packages
28
12
29
- # Login to Docker
30
- if [[ ${CI-} ]]; then
31
- echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USERNAME " --password-stdin
32
- fi
33
-
34
13
docker buildx bake -f ci/release-image/docker-bake.hcl --push
35
14
}
36
15
You can’t perform that action at this time.
0 commit comments