mirror of
https://github.com/ThisTine/Snip.git
synced 2026-08-18 23:18:47 +07:00
feat: workflow
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
name: Auto Build and Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
trigger-internal-build:
|
||||
uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@1d6923bc938dabb10d5c8c98fadf8abeb6744be3
|
||||
with:
|
||||
image_name: 'snip'
|
||||
image_tag: ${{ gitea.ref_name }}
|
||||
secrets:
|
||||
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
bump-compose:
|
||||
needs: trigger-internal-build
|
||||
uses: infras/workflow-templates/.gitea/workflows/bump-compose-version.yml@1d6923bc938dabb10d5c8c98fadf8abeb6744be3
|
||||
with:
|
||||
app: snip
|
||||
version: ${{ gitea.ref_name }}
|
||||
secrets:
|
||||
COMPOSE_TOKEN: ${{ secrets.COMPOSE_TOKEN }}
|
||||
Reference in New Issue
Block a user