37 lines
989 B
YAML
37 lines
989 B
YAML
|
|
name: Build and Push Docker Image
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
branches: [main]
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
build:
|
||
|
|
runs-on: docker
|
||
|
|
container:
|
||
|
|
image: node:20-bookworm
|
||
|
|
steps:
|
||
|
|
- uses: https://data.forgejo.org/actions/checkout@v4
|
||
|
|
with:
|
||
|
|
submodules: true
|
||
|
|
|
||
|
|
- name: Set up QEMU
|
||
|
|
uses: https://data.forgejo.org/docker/setup-qemu-action@v3
|
||
|
|
|
||
|
|
- name: Set up Docker Buildx
|
||
|
|
uses: https://data.forgejo.org/docker/setup-buildx-action@v3
|
||
|
|
|
||
|
|
- name: Login to Forgejo Registry
|
||
|
|
uses: https://data.forgejo.org/docker/login-action@v3
|
||
|
|
with:
|
||
|
|
registry: forge.lvl0.xyz
|
||
|
|
username: ${{ github.actor }}
|
||
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||
|
|
|
||
|
|
- name: Build and push
|
||
|
|
uses: https://data.forgejo.org/docker/build-push-action@v5
|
||
|
|
with:
|
||
|
|
context: .
|
||
|
|
file: .docker/Dockerfile
|
||
|
|
platforms: linux/amd64,linux/arm64
|
||
|
|
push: true
|
||
|
|
tags: forge.lvl0.xyz/lvl0/lvl0-website:latest
|