libreschool.org/.gitea/workflows/build_and_push.yaml

44 lines
1.1 KiB
YAML
Raw Normal View History

2023-12-01 22:38:48 +00:00
name: Container Publish
on:
push:
tags:
- '*'
schedule:
- cron: "0 12 * * *"
jobs:
build-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
2023-12-01 22:44:55 +00:00
- name: Login to registry
2023-12-01 22:38:48 +00:00
uses: docker/login-action@v3
with:
registry: git.libreschool.org
2023-12-02 21:42:39 +00:00
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
2023-12-01 22:38:48 +00:00
2023-12-01 22:44:55 +00:00
- name: Build and publish
2023-12-01 22:38:48 +00:00
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
# linux/arm64
push: true
2023-12-01 22:44:55 +00:00
tags: git.libreschool.org/libreschool/libreschool.org:latest