Files
comingsoon/.gitea/workflows/deploy.yaml
T
fristy 8fb7d7c4ad
CI / Lint & Build (push) Failing after 19s
Deploy / Build & Push Image (push) Failing after 30s
Deploy / Trigger Deploy (push) Skipped
CI / Code Health (push) Successful in 36s
Initial commit: coming soon one-pager for fristy.net
2026-10-16 00:03:27 +03:00

58 lines
1.6 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@v4
- name: Login to registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Resolve tags
id: meta
uses: docker/metadata-action@v5
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@v6
with:
context: .
push: true
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 }}"