From 8dbff2179e47c2cb4084c6486ec6a3bba15a7f3b Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Wed, 12 Jun 2024 21:40:52 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20add=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf85a21 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Matrix Bot for Praying Times + +Super early pre-alpha Proof-of-Concept pre-MVP Matrix Bot which soon should be able to remind you when it's time for praying. + +## Usage + +Use container image or run this after cloning: + +``` +. bin/active +python -m matrix_bot_praying_times +``` + From a1cc5e3ea0d2c246c29a2aa8cd2843d35dd785cd Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Wed, 12 Jun 2024 21:41:20 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=B7=20Add=20CI=20workflow=20for=20?= =?UTF-8?q?building=20container=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forgejo/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .forgejo/workflows/ci.yaml diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..357cdd6 --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: ci + +on: + push: + branches: + - "master" + +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_GITEA_USERNAME }} + password: ${{ secrets.MY_GITEA_TOKEN }} + - name: Build and push to local registry + uses: docker/build-push-action@v5 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + 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