Skip to content

Commit

Permalink
fix deploy yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshijiang committed Oct 6, 2024
1 parent 6185d8a commit 71d489e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 68 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/deploy

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: App Image Build And Deploy
name: Docs Image Build And Deploy
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -39,11 +39,11 @@ jobs:
appname="dapplink-docs"
tag_name="${registry}/${namespace}/${appname}"
docker login --username=100003588471 -p dapplink@go hkccr.ccs.tencentyun.com
docker build --pull -t ${tag_name}:v0.2.0 .
docker push ${tag_name}:v0.2.0
docker build --pull -t ${tag_name}:v0.3.0 .
docker push ${tag_name}:v0.3.0
HELM_OPTS="${HELM_OPTS} --set image.repository=${tag_name}"
HELM_OPTS="${HELM_OPTS} --set image.tag=v0.2.0"
HELM_OPTS="${HELM_OPTS} --set image.tag=v0.3.0"
if [ ${{github.event.inputs.environment }} == "testnet" ]; then
helm template ${{ env.app }} -f values.yaml charts ${HELM_OPTS}
helm upgrade --install ${{ env.app }} -f values.yaml charts ${HELM_OPTS}
Expand Down
2 changes: 1 addition & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: nginx
pullPolicy: IfNotPresent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: ""

Expand Down

0 comments on commit 71d489e

Please sign in to comment.