Files
comingsoon/.gitea/workflows/deploy.yaml
T
fristy c7a1c91558
CI / Code Health (pull_request) Successful in 16s
CI / Lint & Build (pull_request) Successful in 1m23s
chore(deps): roll up the pending dependency bumps
Instead of 11 stale PRs that each need a fresh CI run, take them in one change: actions/cache v6, setup-node v7, setup-python v7, upload-artifact v7, pnpm/action-setup v6, docker login v4, buildx v4, build-push v7, pnpm 12.16.1, eslint 10, @types/node 26.
2026-10-30 21:31:56 +03:00

62 lines
1.9 KiB
YAML

name: Deploy
on:
push:
branches: ["main"]
tags: ["v*"]
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY: git.fristy.net
IMAGE_NAME: fristy/comingsoon
jobs:
image:
name: Build & Push Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Login to registry
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set up Buildx
uses: docker/setup-buildx-action@v4
- name: Resolve tags
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=sha,prefix=
- name: Build & push
uses: docker/build-push-action@v7
with:
context: .
push: true
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
deploy:
name: Trigger Deploy
needs: image
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Trigger Deploy
run: |
curl --fail -X POST "${{ secrets.WEBHOOK_URL }}"