File tree Expand file tree Collapse file tree 6 files changed +18
-31
lines changed
Expand file tree Collapse file tree 6 files changed +18
-31
lines changed Original file line number Diff line number Diff line change 66 workflow_dispatch :
77
88 release :
9- types : [released]
9+ types :
10+ - released
1011
1112jobs :
1213 docker-images :
13- runs-on : ubuntu-latest
14+ runs-on : ubuntu-20.04
1415 steps :
15- - uses : actions/checkout@v2
16+ - name : Checkout
17+ uses : actions/checkout@v2
1618
1719 - name : Set up QEMU
1820 uses : docker/setup-qemu-action@v1
1921
2022 - name : Set up Docker Buildx
2123 uses : docker/setup-buildx-action@v1
2224
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+
2331 - name : Run ./ci/steps/docker-buildx-push.sh
2432 run : ./ci/steps/docker-buildx-push.sh
2533 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
1515# This is the chart version. This version number should be incremented each time you make changes
1616# to the chart and its templates, including the app version.
1717# Versions are expected to follow Semantic Versioning (https://semver.org/)
18- version : 2.0.1
18+ version : 2.1.0
1919
2020# This is the version number of the application being deployed. This version number should be
2121# 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:
1818 {{- toYaml . | nindent 4 }}
1919 {{- end }}
2020spec :
21+ {{- if .Values.ingress.ingressClassName }}
22+ ingressClassName : {{ .Values.ingress.ingressClassName }}
23+ {{- end }}
2124 {{- if .Values.ingress.tls }}
2225 tls :
2326 {{- range .Values.ingress.tls }}
Original file line number Diff line number Diff line change @@ -35,13 +35,12 @@ service:
3535ingress :
3636 enabled : false
3737 # annotations:
38- # kubernetes.io/ingress.class: nginx
3938 # kubernetes.io/tls-acme: "true"
4039 # hosts:
4140 # - host: code-server.example.loc
4241 # paths:
4342 # - /
44-
43+ ingressClassName : " "
4544 # tls:
4645 # - secretName: code-server
4746 # hosts:
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ if [ "${DOCKER_USER-}" ]; then
1818 fi
1919fi
2020
21- dumb-init /usr/bin/code-server " $@ "
21+ exec dumb-init /usr/bin/code-server " $@ "
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
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-
154main () {
165 cd " $( dirname " $0 " ) /../.."
176
187 # ci/lib.sh sets VERSION and provides download_artifact here
198 source ./ci/lib.sh
209
21- if version_exists; then
22- echo " $VERSION is already pushed"
23- return
24- fi
25-
2610 # Download the release-packages artifact
2711 download_artifact release-packages ./release-packages
2812
29- # Login to Docker
30- if [[ ${CI-} ]]; then
31- echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USERNAME " --password-stdin
32- fi
33-
3413 docker buildx bake -f ci/release-image/docker-bake.hcl --push
3514}
3615
You can’t perform that action at this time.
0 commit comments