Skip to content

Commit

Permalink
fix: deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Aug 19, 2023
1 parent 2674a5c commit f15c209
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/client-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Client - Deploy"

on:
workflow_call:
workflow_dispatch:

jobs:
checks:
Expand All @@ -21,18 +22,24 @@ jobs:
uses: actions/checkout@v3

- name: 🎡 Setup Kubectl
uses: azure/setup-kubectl@v2.0
uses: azure/setup-kubectl@v3

- name: 🎡 Setup k8s context to home folder from base64 secret
run: |
mkdir -p ~/.kube
echo ${{ secrets.KUBE_CONFIG }} | base64 --decode > ~/.kube/config
@echo ${KUBE_CONFIG} | base64 -d > ${HOME}/.kube/config
- name: 🎡 Set k8s context
uses: azure/k8s-set-context@v3
with:
method: kubeconfig
kubeconfig: ~/.kube/config
context: dev

- name: 🎡 Run kubectl
run: |
kubectl get pods
- name: 🚀 Deploy to k8s
uses: azure/k8s-deploy@v4
Expand All @@ -41,6 +48,6 @@ jobs:
action: deploy
strategy: basic
manifests: |
infra/manifests/${{ needs.checks.outputs.env_name }}/client.yml
${{ github.workspace }}/infra/manifests/${{ needs.checks.outputs.env_name }}/client.yml
images: |
goatcommunity/client:${{ github.sha }}
8 changes: 4 additions & 4 deletions .github/workflows/client-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ concurrency:
cancel-in-progress: true

jobs:
# release-goat:
# name: release-goat
# uses: ./.github/workflows/client-release.yml
# secrets: inherit
release-goat:
name: release-goat
uses: ./.github/workflows/client-release.yml
secrets: inherit

deploy-goat:
name: deploy-goat
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/client-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Client - Release"

on:
workflow_call:
workflow_dispatch:


defaults:
run:
Expand Down
3 changes: 2 additions & 1 deletion infra/manifests/v2/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ spec:
protocol: TCP
type: NodePort
selector:
app: goat-client
app: goat-client

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f15c209

Please sign in to comment.