Skip to content

Commit

Permalink
Add conditional deploy check (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
pycui authored Jul 29, 2023
1 parent fe71c59 commit 922f586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_push_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
version: 'v1.20.0'

- name: Deploy to Kubernetes
if: ${{ contains(github.ref, 'deploy') }}
run: |
echo "${{ secrets.KUBECONFIG }}" | base64 --decode > ./kubeconfig.yaml
export KUBECONFIG=./kubeconfig.yaml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/react_build_push_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
tags: shaunly/real_char_frontend:latest

- name: Deploy to Kubernetes
if: ${{ contains(github.ref, 'deploy') }}
run: |
echo "${{ secrets.KUBECONFIG }}" | base64 --decode > ./kubeconfig.yaml
export KUBECONFIG=./kubeconfig.yaml
Expand Down

0 comments on commit 922f586

Please sign in to comment.