Time Zones Are Hard - https://tz.rita.moe

Auto-build image?

Changed files
+53
.forgejo
workflows
+53
.forgejo/workflows/build.yml
···
···
+
name: Build
+
+
on:
+
push:
+
branches:
+
- main
+
+
jobs:
+
build:
+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
+
runs-on: ubuntu-latest
+
name: Build
+
container:
+
image: catthehacker/ubuntu:act-latest
+
env:
+
DOCKER_TAG: latest
+
steps:
+
- name: Checkout
+
uses: actions/checkout@v3
+
+
- name: Get Meta
+
id: meta
+
run: |
+
echo REGISTRY_DOMAIN=$(echo ${GITHUB_SERVER_URL} | sed 's\^https://\\') >> $GITHUB_OUTPUT
+
echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
+
+
- name: Set up QEMU
+
uses: docker/setup-qemu-action@v2
+
+
- name: Set up Docker BuildX
+
uses: docker/setup-buildx-action@v2
+
+
- name: Login to registry
+
uses: docker/login-action@v2
+
with:
+
registry: ${{ steps.meta.outputs.REGISTRY_DOMAIN }}
+
username: ${{ github.repository_owner }}
+
password: ${{ secrets.CI_REGISTRY_TOKEN }}
+
+
- name: Build and push
+
uses: docker/build-push-action@v4
+
env:
+
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
+
with:
+
context: .
+
file: ./Dockerfile
+
platforms: |
+
linux/amd64
+
linux/arm64
+
push: true
+
tags: |
+
${{ github.repository }}:${{ steps.meta.outputs.REPO_VERSION }}
+
${{ github.repository }}:${{ env.DOCKER_TAG }}