documents/.forgejo/workflows/deploy.yml
ndsboy 64c4800a76
Some checks failed
deploy / deploy (push) Failing after 17s
feat: use buildah on repo
2025-02-24 22:04:12 +00:00

22 lines
595 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: login
run: buildah login -u token -p ${{ secrets.SWABLAB_ORGA_PACKAGE_TOKEN }} git.swablab.de
- name: build
run: buildah build -t git.swablab.de/${{ github.repository }}:latest ${{ github.server_url }}/${{ github.repository }}.git
- name: push
run: buildah push git.swablab.de/${{ github.repository }}:latest