34 lines
811 B
YAML
34 lines
811 B
YAML
name: deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
repo: website
|
|
git: git.swablab.de
|
|
url: git.swablab.de/${{ github.repository }}
|
|
token: ${{ secrets.SWABLAB_ORGA_PACKAGE_TOKEN }}
|
|
ASTRO_TELEMETRY_DISABLED: true
|
|
|
|
jobs:
|
|
deploy:
|
|
name: deploy
|
|
runs-on: docker
|
|
container:
|
|
image: quay.io/buildah/stable:latest
|
|
env:
|
|
STORAGE_DRIVER: vfs
|
|
steps:
|
|
- name: download
|
|
run: curl https://${{ env.url }}/archive/main.tar.gz | tar -xz
|
|
|
|
- name: build
|
|
run: buildah build -f ${{ env.repo }}/Containerfile -t ${{ env.url }}:latest ${{ env.repo }}
|
|
|
|
- name: login
|
|
run: buildah login -u token -p ${{ env.token }} ${{ env.git }}
|
|
|
|
- name: push
|
|
run: buildah push ${{ env.git }}/${{ github.repository }}:latest
|