Initial commit: coming soon one-pager
CI / Lint & Build (push) Failing after 21s
CI / Code Health (push) Successful in 22s
Deploy / Build & Push Image (push) Failing after 17s
Deploy / Trigger Deploy (push) Skipped

This commit is contained in:
fristy committed 2026-10-16 00:16:36 +03:00
commit 5b5e0343bf
19 files changed
+4511

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
name: CI
on:
pull_request:
push:
branches: ["main"]
jobs:
check:
name: Lint & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Get pnpm store path
id: pnpm-store
run: echo "path=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-store.outputs.path }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm format:check
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
health:
name: Code Health
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Scan with desloppify (CI profile, objective only)
continue-on-error: true
run: |
pipx run --spec desloppify desloppify scan --profile ci --path . --no-badge
- name: Upload scorecard
uses: actions/upload-artifact@v3
with:
name: desloppify-scorecard
path: scorecard.png
if-no-files-found: ignore
+57
View File
@@ -0,0 +1,57 @@
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 }}"