Skip to content

Commit

Permalink
deploy (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 authored Jun 29, 2024
1 parent 5851047 commit 7132bbb
Show file tree
Hide file tree
Showing 25 changed files with 63 additions and 203 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- 'master'



jobs:
build-frontend:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'deploy'
name: 'build'

input:
tag:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: deploy

on:
push:
branches:
- 'master'

jobs:
deploy-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: deploy frontend
uses: ./.github/workflows/deploy
with:
tag: frontend
config: ${{ secrets.KUBE_CONFIG }}

deploy-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: deploy backend
uses: ./.github/workflows/deploy
with:
tag: frontend
kubeconfig: ${{ secrets.KUBE_CONFIG }}
config: ${{ secrets.BACKEND_TESTING_PROPERTIES }}
22 changes: 22 additions & 0 deletions .github/workflows/deploy/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'deploy'

input:
tag:
kubeconfig:
config:

permissions:
packages: write

runs:
using: "composite"
steps:
- name: config
shell: bash
run: echo "${{ inputs.config }}" > ./${{ inputs.tag }}/deployment/config.properties
- name: apply
uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ inputs.kubeconfig }}
with:
args: apply -k ./${{ inputs.tag }}/deployment
6 changes: 0 additions & 6 deletions backend/deployment/base/kustomization.yml

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions backend/deployment/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
configMapGenerator:
- name: mycowgame-com-backend
env: config.properties

resources:
- deployment.yml
27 changes: 0 additions & 27 deletions backend/deployment/overlays/production/kustomization.yml

This file was deleted.

4 changes: 0 additions & 4 deletions backend/deployment/overlays/production/namespace.yml

This file was deleted.

27 changes: 0 additions & 27 deletions backend/deployment/overlays/staging/kustomization.yml

This file was deleted.

4 changes: 0 additions & 4 deletions backend/deployment/overlays/staging/namespace.yml

This file was deleted.

27 changes: 0 additions & 27 deletions backend/deployment/overlays/testing/kustomization.yml

This file was deleted.

4 changes: 0 additions & 4 deletions backend/deployment/overlays/testing/namespace.yml

This file was deleted.

6 changes: 0 additions & 6 deletions frontend/deployment/base/kustomization.yaml

This file was deleted.

File renamed without changes.
6 changes: 6 additions & 0 deletions frontend/deployment/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
configMapGenerator:
- name: mycowgame-com-frontend
env: config.properties

resources:
- deployment.yml
1 change: 0 additions & 1 deletion frontend/deployment/overlays/production/config.properties

This file was deleted.

27 changes: 0 additions & 27 deletions frontend/deployment/overlays/production/kustomization.yml

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/deployment/overlays/production/namespace.yml

This file was deleted.

1 change: 0 additions & 1 deletion frontend/deployment/overlays/staging/config.properties

This file was deleted.

27 changes: 0 additions & 27 deletions frontend/deployment/overlays/staging/kustomization.yml

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/deployment/overlays/staging/namespace.yml

This file was deleted.

1 change: 0 additions & 1 deletion frontend/deployment/overlays/testing/config.properties

This file was deleted.

27 changes: 0 additions & 27 deletions frontend/deployment/overlays/testing/kustomization.yml

This file was deleted.

4 changes: 0 additions & 4 deletions frontend/deployment/overlays/testing/namespace.yml

This file was deleted.

0 comments on commit 7132bbb

Please sign in to comment.