Skip to content

Commit

Permalink
Auto Deploy to Dev servers (#205)
Browse files Browse the repository at this point in the history
* Auto Deploy to dev

* Add frontend too
  • Loading branch information
pycui authored Jul 29, 2023
1 parent cf3292b commit f536dee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image
name: Build Push and Deploy Docker Image

on:
release:
Expand All @@ -23,3 +23,14 @@ jobs:
with:
push: true
tags: shaunly/real_char:latest

- name: Install and configure kubectl
uses: azure/setup-kubectl@v1
with:
version: 'v1.20.0'

- name: Deploy to Kubernetes
run: |
echo "${{ secrets.KUBECONFIG }}" | base64 --decode > ./kubeconfig.yaml
export KUBECONFIG=./kubeconfig.yaml
kubectl rollout restart deployment deployment/realchar-dev-deployment
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image for Frontend
name: Build Push and Deploy Docker Image for Frontend

on:
release:
Expand Down Expand Up @@ -28,3 +28,9 @@ jobs:
file: ./client/web/Dockerfile
push: true
tags: shaunly/real_char_frontend:latest

- name: Deploy to Kubernetes
run: |
echo "${{ secrets.KUBECONFIG }}" | base64 --decode > ./kubeconfig.yaml
export KUBECONFIG=./kubeconfig.yaml
kubectl rollout restart deployment deployment/react-dev-deployment

0 comments on commit f536dee

Please sign in to comment.