This commit is contained in:
parent
34c7cb683a
commit
b3568b7da4
2 changed files with 25 additions and 18 deletions
25
.forgejo/workflows/deploy.yml
Normal file
25
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: deploy
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
env:
|
||||
ASTRO_TELEMETRY_DISABLED: true
|
||||
|
||||
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.GITHUB_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
|
|
@ -1,18 +0,0 @@
|
|||
name: Build Astro
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
env:
|
||||
ASTRO_TELEMETRY_DISABLED: true
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy
|
||||
runs-on: docker
|
||||
container:
|
||||
image: quay.io/buildah/stable:latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- run: curl ${{ github.server_url }}/${{ github.repository }}/archive/main.tar.gz | tar -xz
|
||||
- run: buildah build -f website/Containerfile -t git.swablab.de/${{ github.repository }}:latest website
|
||||
- run: buildah login -u token -p ${{ secrets.GITHUB_TOKEN }} git.swablab.de
|
||||
- run: buildah push git.swablab.de/${{ github.repository }}:latest
|
Loading…
Add table
Reference in a new issue