fix: deploy/app, added continuos-deploy gitea workflow template
This commit is contained in:
34
.gitea/workflows/app-continous-deploy.yaml
Normal file
34
.gitea/workflows/app-continous-deploy.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
continuous-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: git.limbosolutions.com/kb/gitea/act:latest-network-stack
|
||||
env:
|
||||
GITHUB_TEMP: ${{ runner.temp }} # fix missing GITHUB_TEMP on gitea
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: limbo public actions
|
||||
env:
|
||||
WORKSPACE: "${{ gitea.workspace }}"
|
||||
run: |
|
||||
curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1
|
||||
|
||||
|
||||
# my custom actions https://git.limbosolutions.com/kb/gitea/raw/branch/main
|
||||
- name: Configure kubectl config
|
||||
uses: ./.gitea/limbo_actions/kubectl-setup
|
||||
with:
|
||||
kube_server: ${{ secrets.HOSTING_KUBE_SERVER }}
|
||||
kube_ca_base64: ${{ secrets.HOSTING_KUBE_CA_BASE64 }}
|
||||
kube_token: ${{ secrets.HOSTING_KUBE_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user