From 710a37dac39d2f03a9fa9531bc2b509b6212dbf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Thu, 22 Feb 2024 17:21:22 +0100 Subject: [PATCH] ci: add docker build and push action --- .forgejo/workflows/build-image.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .forgejo/workflows/build-image.yml diff --git a/.forgejo/workflows/build-image.yml b/.forgejo/workflows/build-image.yml new file mode 100644 index 0000000..d8a8d4a --- /dev/null +++ b/.forgejo/workflows/build-image.yml @@ -0,0 +1,20 @@ +name: Build docker image +on: [push] + +jobs: + build-image: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Login to Forgejo docker registry + uses: docker/login-action@v3.0.0 + with: + registry: git.pub.solar + username: hakkonaut + password: ${{ secrets.GIT_AUTH_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5.1.0 + with: + push: true + tags: git.pub.solar/pub-solar/obs-portal:latest