Skip to content

Commit ece3b89

Browse files
authored
chore: add ghcr image (#200)
Will build it in next release Signed-off-by: cutecutecat <[email protected]>
1 parent d16d469 commit ece3b89

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ jobs:
159159
build-args: |
160160
PG_VERSION=${{ matrix.version }}
161161
SEMVER=${{ env.SEMVER }}
162+
- name: Login to GHCR
163+
uses: docker/login-action@v3
164+
with:
165+
registry: ghcr.io
166+
username: ${{ github.actor }}
167+
password: ${{ secrets.GITHUB_TOKEN }}
162168
- name: Push PostgreSQL release to Docker Registry
163169
uses: docker/build-push-action@v6
164170
with:
@@ -167,13 +173,15 @@ jobs:
167173
platforms: ${{ matrix.runner == 'ubuntu-22.04' && 'linux/amd64' || 'linux/arm64' }}
168174
file: ./docker/Dockerfile
169175
provenance: false
170-
tags: tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}-${{ env.PLATFORM }}
176+
tags: |
177+
tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}-${{ env.PLATFORM }}
178+
ghcr.io/tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}-${{ env.PLATFORM }}
171179
build-args: |
172180
PG_VERSION=${{ matrix.version }}
173181
SEMVER=${{ env.SEMVER }}
174182
PGVECTOR=0.8.0
175183
- name: Login to modelzai Docker Hub
176-
uses: docker/login-action@v2
184+
uses: docker/login-action@v3
177185
with:
178186
username: ${{ secrets.DOCKERIO_MODELZ_USERNAME }}
179187
password: ${{ secrets.DOCKERIO_MODELZ_TOKEN }}
@@ -211,6 +219,12 @@ jobs:
211219
with:
212220
username: ${{ secrets.DOCKERIO_USERNAME }}
213221
password: ${{ secrets.DOCKERIO_TOKEN }}
222+
- name: Login to GHCR
223+
uses: docker/login-action@v3
224+
with:
225+
registry: ghcr.io
226+
username: ${{ github.actor }}
227+
password: ${{ secrets.GITHUB_TOKEN }}
214228
- name: Create manifest and push
215229
run: |
216230
docker manifest create \
@@ -223,6 +237,12 @@ jobs:
223237
--amend tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}-amd64 \
224238
--amend tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}-arm64
225239
docker manifest push tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}
240+
docker manifest create \
241+
ghcr.io/tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }} \
242+
--amend ghcr.io/tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}-amd64 \
243+
--amend ghcr.io/tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}-arm64
244+
docker manifest push ghcr.io/tensorchord/vchord-postgres:pg${{ matrix.version }}-v${{ env.SEMVER }}
245+
226246
227247
create-manifests-modelzai:
228248
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)