diff --git a/.github/workflows/buildx.yml b/.github/workflows/buildx.yml index 2cd70d2..969e432 100644 --- a/.github/workflows/buildx.yml +++ b/.github/workflows/buildx.yml @@ -65,6 +65,19 @@ jobs: --tag ghcr.io/benbusby/whoogle-search:${VERSION} \ --tag ghcr.io/benbusby/whoogle-search:latest \ --platform linux/amd64,linux/arm/v7,linux/arm64 . + - name: build and push pre-release (version only) + if: github.event_name == 'release' && github.event.release.prerelease == true && (github.actor == 'benbusby' || github.actor == 'Don-Swanson') + run: | + TAG="${{ github.event.release.tag_name }}" + VERSION="${TAG#v}" + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker buildx ls + docker buildx build --push \ + --tag benbusby/whoogle-search:${VERSION} \ + --platform linux/amd64,linux/arm/v7,linux/arm64 . + docker buildx build --push \ + --tag ghcr.io/benbusby/whoogle-search:${VERSION} \ + --platform linux/amd64,linux/arm/v7,linux/arm64 . - name: build and push tag if: startsWith(github.ref, 'refs/tags') run: |