Skip to content

Commit

Permalink
test: k3s deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Aug 25, 2024
1 parent ce51c5e commit c1b3d43
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/k3s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
NAMESPACE: "depromeet"
IMAGE_NAME: "kasukabe-server"
MODULE: "layer-api"


jobs:
setup:
Expand Down Expand Up @@ -101,14 +101,18 @@ jobs:



deploy:
name: Deploy to K3s
needs: [ build, setup ]
runs-on: ubuntu-latest
env:
DEPLOY_TARGET: ${{ needs.setup.outputs.deploy_target }}
SELECTOR: ${{ env.MODULE }}-dev
MODULE: ${{ env.MODULE }}
REGISTRY: ${{ env.REGISTRY }}
NAMESPACE: ${{ env.NAMESPACE }}
IMAGE_NAME: ${{ env.IMAGE_NAME }}

steps:
- name: Checkout sources
Expand Down Expand Up @@ -209,6 +213,7 @@ jobs:
port:
number: 80
EOF
- name: Deploy to K3s
run: |
kubectl apply -f deployment.yaml
Expand Down

0 comments on commit c1b3d43

Please sign in to comment.