diff --git a/.gitea/workflows/building.yaml b/.gitea/workflows/building.yaml new file mode 100644 index 0000000..655c8a2 --- /dev/null +++ b/.gitea/workflows/building.yaml @@ -0,0 +1,36 @@ +name: Building base images +on: + push: + tags: + - 'build*' + +jobs: + building-base-images: + runs-on: alt-sisyphus + steps: + - name: Update apt + uses: actions/init-alt-env@v1 + - name: Install requires + run: | + echo "apt-get install -y python3-module-jinja2 json podman jq wget curl" + apt-get install -y python3-module-jinja2 json podman jq wget curl + echo "apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-riscv qemu-user-static-binfmt-loongarch" + apt-get install -y qemu-user-static-binfmt-aarch64 qemu-user-static-binfmt-riscv qemu-user-static-binfmt-loongarch + - name: Check workspace + run: | + repourl=$(echo $GU | cut -d '/' -f 3) + echo "URL=$repourl" >> ${GITHUB_ENV} + echo "URL=$repourl" + - name: Check out current repo + uses: actions/checkout@v4 + - name: Login podman gitea + run: | + echo "podman login ${{ env.URL }}" + podman login --username $P_USER --password $P_PASS ${{ env.URL }} + env: + P_USER: ${{ secrets.PODMAN_USER }} + P_PASS: ${{ secrets.PODMAN_PASS }} + - name: Run building script + id: build-script + run: | + ${{ gitea.workspace }}/build.py