ci: deploy with desu-deploy
This commit is contained in:
parent
cf0f13cc04
commit
17c7d889af
1 changed files with 20 additions and 3 deletions
21
.github/workflows/publish.yaml
vendored
21
.github/workflows/publish.yaml
vendored
|
@ -1,11 +1,17 @@
|
||||||
name: Release - Tag and publish Docker image
|
name: Publish and deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: deploy
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create_release:
|
publish:
|
||||||
|
if: github.repository == 'teidesu/tei.su' # do not run on forks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
@ -47,3 +53,14 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: publish
|
||||||
|
steps:
|
||||||
|
- uses: teidesu/desu-deploy@main
|
||||||
|
with:
|
||||||
|
key: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
server: ${{ secrets.DEPLOY_SERVER }}
|
||||||
|
wireguard: ${{ secrets.DEPLOY_WG }}
|
||||||
|
service: teisu
|
Loading…
Reference in a new issue