From 85442168302ccc97e093ad8edd48e2526f9528d9 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Mon, 13 Nov 2023 18:39:04 +0100 Subject: [PATCH] add gitea workflow --- .gitea/workflows/amd64-image.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/amd64-image.yml diff --git a/.gitea/workflows/amd64-image.yml b/.gitea/workflows/amd64-image.yml new file mode 100644 index 0000000..bf5eb7f --- /dev/null +++ b/.gitea/workflows/amd64-image.yml @@ -0,0 +1,31 @@ +name: Build images +run-name: Build images +on: + push: + branches: [ "main" ] + schedule: + - cron: '30 5 */5 * *' + +jobs: + build-images: + runs-on: ubuntu-latest + steps: + - name: install actions deps + run: | + dnf install -y nodejs git + - name: Check out repository code + uses: actions/checkout@v3 + - name: Build selected images + run: | + podman build ./system-toolbox --tag system-toolbox:latest + podman build ./cloud-toolbox --tag cloud-toolbox:latest + - name: login to registry + run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud + - name: Push image + run: | + # tagging + podman tag system-toolbox:latest gitea.maciej.cloud/packages/system-toolbox:latest + podman tag cloud-toolbox:latest gitea.maciej.cloud/packages/cloud-toolbox:latest + # pushing + podman push gitea.maciej.cloud/packages/system-toolbox:latest + podman push gitea.maciej.cloud/packages/cloud-toolbox:latest