matrix-bot-praying-times/.forgejo/workflows/ci.yaml

40 lines
1.2 KiB
YAML
Raw Normal View History

name: ci
on:
push:
branches:
2024-06-12 22:06:36 +02:00
- "main"
jobs:
docker:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker for QEMU
uses: https://github.com/papodaca/install-docker-action@main
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: code.f2n.me
username: ${{ secrets.MY_FORGEJO_USERNAME }}
password: ${{ secrets.MY_FORGEJO_TOKEN }}
- name: Build and push to local registry
uses: docker/build-push-action@v5
with:
context: .
push: true
2024-06-12 22:49:20 +02:00
# platforms: linux/amd64,linux/arm64 # ARM disabled for now: error: command 'gcc' failed: No such file or directory
platforms: linux/amd64
tags: code.f2n.me/finn/matrix-bot-praying-times:latest
- name: Inspect
run: |
docker buildx imagetools inspect code.f2n.me/finn/matrix-bot-praying-times:latest