documents/.forgejo/workflows/deploy.yml
ndsboy 9f9090e5b8
Some checks failed
deploy / deploy (push) Failing after 24s
feat: build in forgejo
2025-02-24 21:52:59 +00:00

25 lines
700 B
YAML

name: deploy
on: [push, workflow_dispatch]
env:
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 documents/Containerfile -t git.swablab.de/${{ github.repository }}:latest documents
- name: push
run: buildah push git.swablab.de/${{ github.repository }}:latest