website/.forgejo/workflows/deploy.yml
ndsboy 999ba5dbdf
All checks were successful
deploy / deploy (push) Successful in 1m21s
fix: use orga token
2025-02-24 19:17:04 +00:00

26 lines
729 B
YAML

name: deploy
on: [push, workflow_dispatch]
env:
ASTRO_TELEMETRY_DISABLED: true
STORAGE_DRIVER: vfs
jobs:
deploy:
name: deploy
runs-on: docker
container:
image: quay.io/buildah/stable:latest
if: github.ref == 'refs/heads/main'
steps:
- name: download
run: curl ${{ github.server_url }}/${{ github.repository }}/archive/main.tar.gz | tar -xz
- name: login
run: buildah login -u token -p ${{ secrets.SWABLAB_ORGA_PACKAGE_TOKEN }} git.swablab.de
- name: build
run: buildah build -f website/Containerfile -t git.swablab.de/${{ github.repository }}:latest website
- name: push
run: buildah push git.swablab.de/${{ github.repository }}:latest