diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b636af73..3f2b02b55 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -155,7 +155,36 @@ jobs: # ${{ env.ONLINE_REGISTER }}/postgres-operator:${{ github.ref_name }} # cache-from: type=gha # cache-to: type=gha,mode=max - logical-backup: +# logical-backup: +# runs-on: ubuntu-latest +# steps: +# - name: Git clone repo +# uses: actions/checkout@v3 +# with: +# fetch-depth: 0 +# - name: Login to GitHub Container Registry +# uses: docker/login-action@v2 +# with: +# registry: ghcr.io +# username: ${{ github.actor }} +# password: ${{ secrets.GITHUB_TOKEN }} +# - name: Set up QEMU +# uses: docker/setup-qemu-action@v2 +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v2.0.0 +# - name: logical-backup +# uses: docker/build-push-action@v3.1.1 +# with: +# context: ./arm64/images/logical-backup +# file: ./arm64/images/logical-backup/Dockerfile +# github-token: ${{ secrets.GITHUB_TOKEN }} +# push: true +# platforms: ${{ env.BUILD_PLATFORM }} +# tags: | +# ${{ env.ONLINE_REGISTER }}/logical-backup:${{ github.ref_name }} +# cache-from: type=gha +# cache-to: type=gha,mode=max + spilo: runs-on: ubuntu-latest steps: - name: Git clone repo @@ -172,15 +201,15 @@ jobs: uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2.0.0 - - name: logical-backup + - name: spilo uses: docker/build-push-action@v3.1.1 with: - context: ./arm64/images/logical-backup - file: ./arm64/images/logical-backup/Dockerfile + context: ./arm64/images/spilo + file: ./arm64/images/spilo/Dockerfile github-token: ${{ secrets.GITHUB_TOKEN }} push: true platforms: ${{ env.BUILD_PLATFORM }} tags: | - ${{ env.ONLINE_REGISTER }}/logical-backup:${{ github.ref_name }} + ${{ env.ONLINE_REGISTER }}/spilo-15:${{ github.ref_name }} cache-from: type=gha cache-to: type=gha,mode=max \ No newline at end of file diff --git a/arm64/images/spilo/Dockerfile b/arm64/images/spilo/Dockerfile new file mode 100644 index 000000000..5e0e68c74 --- /dev/null +++ b/arm64/images/spilo/Dockerfile @@ -0,0 +1,15 @@ +FROM --platform=$TARGETPLATFORM ghcr.io/zalando/spilo-15:3.0-p1 + +RUN apt-get update && \ + apt-get install -y --no-install-recommends gcc postgresql-server-dev-15 git make && \ + rm -rf /var/lib/apt/lists/* + +RUN cd /tmp && \ + git clone --branch v0.4.4 https://github.com/pgvector/pgvector.git && \ + cd pgvector && \ + make && \ + make install + +# cleanup +RUN rm -rf /tmp/pgvector && \ + apt-get purge -y --auto-remove gcc postgresql-server-dev-15 git make \ No newline at end of file