forked from bitpoke/mysql-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
# - name: logical-backup | ||
# uses: docker/[email protected] | ||
# 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/[email protected] | ||
- name: logical-backup | ||
- name: spilo | ||
uses: docker/[email protected] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |