Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/cos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 发布到腾讯云

on:
push:
branches:
- master
- legacy
- dev

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"

- name: Install Helm
run: |
echo "installing helm 3..."
curl -sSL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

- name: Upload to COS
uses: zkqiang/[email protected]
with:
args: upload -r /
secret_id: ${{ secrets.TENCENT_SECRET_ID }}
secret_key: ${{ secrets.TENCENT_SECRET_KEY }}
bucket: helm-1374617844
region: ap-chengdu
2 changes: 1 addition & 1 deletion charts/apisix/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
{{- end }}
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
{{- if eq .Values.apisix.deployment.mode "standalone" }}
command: ["sh", "-c","ln -s /apisix-config/apisix.yaml /usr/local/apisix/conf/apisix.yaml && /docker-entrypoint.sh docker-start"]
command: ["sh", "-c","cp /apisix-config/apisix.yaml {{ .Values.apisix.configDir }} && ln -s {{ .Values.apisix.configDir }}/apisix.yaml /usr/local/apisix/conf/apisix.yaml && /docker-entrypoint.sh docker-start"]
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
Expand Down
2 changes: 2 additions & 0 deletions charts/apisix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ apisix:
# -- Enable nginx IPv6 resolver
enableIPv6: true
enableHTTP2: true
# -- Address the issue of configuration files being unable to update in standalone mode due to being a ConfigMap
configDir: "/etc/apisix/conf.d"

# -- Whether the APISIX version number should be shown in Server header
enableServerTokens: true
Expand Down