diff --git a/.github/workflows/fork_package_builder.yml b/.github/workflows/fork_package_builder.yml new file mode 100644 index 00000000000..95d25858a75 --- /dev/null +++ b/.github/workflows/fork_package_builder.yml @@ -0,0 +1,31 @@ +name: Fork package builder image + +on: + workflow_dispatch: + +permissions: {} + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - name: Clone repository + uses: actions/checkout@v7 + + - name: Login to GHCR + uses: docker/login-action@v4 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + env: + IMAGE: ghcr.io/randomcoderorg/termux-package-builder + run: | + docker build --tag "$IMAGE:ndk29" --tag "$IMAGE:${GITHUB_SHA::12}" scripts/ + docker push "$IMAGE:ndk29" + docker push "$IMAGE:${GITHUB_SHA::12}"