Skip to content

Commit

Permalink
Merge pull request #35 from psuzn/develop
Browse files Browse the repository at this point in the history
develop ->  main
  • Loading branch information
psuzn authored Oct 3, 2023
2 parents 919972c + 8690ed4 commit 4063302
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 32 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,40 +31,40 @@ jobs:
DOCKER_USER: ${{ github.actor }}
DOCKER_PASSWORD: ${{ github.token }}

deploy_on_k8:
runs-on: ubuntu-latest
needs: build_image
steps:
- uses: actions/checkout@v3
deploy_on_k8:
runs-on: ubuntu-latest
needs: build_image
steps:
- uses: actions/checkout@v3

- uses: extractions/setup-just@v1
- uses: extractions/setup-just@v1

- uses: azure/setup-helm@v3
- uses: azure/setup-helm@v3

- uses: azure/setup-kubectl@v3
id: install
name: Setup kubectl client
- uses: azure/setup-kubectl@v3
id: install
name: Setup kubectl client

- name: create KUBECONFIG
if: ${{ github.ref == 'refs/heads/main' }}
run: |
echo ${{ secrets.KUBE_CONFIG }} | base64 --decode > kube-config;
chmod 600 kube-config;
echo "KUBECONFIG=$(pwd)/kube-config" >> "$GITHUB_ENV"
- name: create KUBECONFIG
if: ${{ github.ref == 'refs/heads/main' }}
run: |
echo ${{ secrets.KUBE_CONFIG }} | base64 --decode > kube-config;
chmod 600 kube-config;
echo "KUBECONFIG=$(pwd)/kube-config" >> "$GITHUB_ENV"
- name: Deploy on k8
if: ${{ github.ref == 'refs/heads/main' }}
run: |
kubectl config current-context;
just helm-upgrade;
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_NAME: ${{ secrets.DB_NAME }}
DASHBOARD: ${{ secrets.DASHBOARD }}
DASHBOARD_USER: ${{ secrets.DASHBOARD_USER }}
DASHBOARD_PASS: ${{ secrets.DASHBOARD_PASS }}
- name: Deploy on k8
if: ${{ github.ref == 'refs/heads/main' }}
run: |
kubectl config current-context;
just helm-upgrade;
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_NAME: ${{ secrets.DB_NAME }}
DASHBOARD: ${{ secrets.DASHBOARD }}
DASHBOARD_USER: ${{ secrets.DASHBOARD_USER }}
DASHBOARD_PASS: ${{ secrets.DASHBOARD_PASS }}


3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
workflow_dispatch:

jobs:
checks:
check_verify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit 4063302

Please sign in to comment.