mirror of
https://github.com/ThisTine/Snip.git
synced 2026-08-18 23:18:47 +07:00
34 lines
911 B
YAML
34 lines
911 B
YAML
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@736cd715b4b9c80f20ec51ef8445cb630c8299f5
|
|
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@736cd715b4b9c80f20ec51ef8445cb630c8299f5
|
|
with:
|
|
app: snip
|
|
update: |
|
|
snip-migrate:${{ gitea.ref_name }}
|
|
snip-api:${{ gitea.ref_name }}
|
|
snip-frontend:${{ gitea.ref_name }}
|
|
snip-redirect:${{ gitea.ref_name }}
|
|
secrets:
|
|
COMPOSE_TOKEN: ${{ secrets.COMPOSE_TOKEN }} |