forked from swablab/website
38 lines
791 B
YAML
38 lines
791 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
|
|
steps:
|
|
- name: login
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.git }}
|
|
username: token
|
|
password: ${{ env.token }}
|
|
|
|
- name: qemu
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: build
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
tags: ${{ env.git }}/${{ github.repository }}:latest
|
|
|