Skip to content

Commit bc6c372

Browse files
authored
Merge branch 'main' into patch-2
2 parents e28c5cf + 03c6224 commit bc6c372

File tree

5 files changed

+17
-30
lines changed

5 files changed

+17
-30
lines changed

.github/workflows/docker.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,29 @@ on:
66
workflow_dispatch:
77

88
release:
9-
types: [released]
9+
types:
10+
- released
1011

1112
jobs:
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 }}

ci/helm-chart/Chart.yaml

+1-1
Original file line numberDiff line numberDiff 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

ci/helm-chart/templates/ingress.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ metadata:
1818
{{- toYaml . | nindent 4 }}
1919
{{- end }}
2020
spec:
21+
{{- if .Values.ingress.ingressClassName }}
22+
ingressClassName: {{ .Values.ingress.ingressClassName }}
23+
{{- end }}
2124
{{- if .Values.ingress.tls }}
2225
tls:
2326
{{- range .Values.ingress.tls }}

ci/helm-chart/values.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ service:
3535
ingress:
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:

ci/steps/docker-buildx-push.sh

-21
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
11
#!/usr/bin/env bash
22
set -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-
154
main() {
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

0 commit comments

Comments
 (0)