website/.forgejo/workflows/main.yml
ndsboy d00b773aa3
Some checks failed
Build Astro / 🧪 Astro check (push) Successful in 1m18s
Build Astro / 🚢 Deploy (push) Failing after 1s
fix: seccomp
2025-02-23 00:23:42 +00:00

56 lines
1.5 KiB
YAML

name: Build Astro
on: [push, workflow_dispatch]
env:
ASTRO_TELEMETRY_DISABLED: true
jobs:
check:
name: 🧪 Astro check
runs-on: docker
container:
image: node:lts
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/denoland/setup-deno@v2
with:
deno-version: v2.x
- run: deno task install
- run: deno task check
deploy:
name: 🚢 Deploy
runs-on: docker
container:
image: gcr.io/kaniko-project/executor:latest
options: --security-opt seccomp=unconfined
if: github.ref == 'refs/heads/main'
needs: [check]
steps:
- run: buildah build -f Containerfile .
# - uses: https://github.com/actions/checkout@v4
#
# - uses: https://github.com/denoland/setup-deno@v2
# with:
# deno-version: v2.x
# - run: deno task install
# - run: deno task build
#
# - name: build containerfile
# id: build-image
# uses: https://github.com/redhat-actions/buildah-build@v2
# with:
# image: website
# tags: latest
# containerfiles: |
# ./Containerfile
#
# - name: Push to registry
# uses: https://github.com/redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.build-image.outputs.image }}
# tags: ${{ steps.build-image.outputs.tags }}
# username: token
# password: ${{ secrets.GITHUB_TOKEN }}
# registry: ${{ github.server_url }}/${{ github.repository }}