25 lines
700 B
YAML
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
|