10000 fix: let docker use the right arch (#167) · sorokinvld/postgres@7a1c369 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a1c369

Browse files
authored
fix: let docker use the right arch (supabase#167)
1 parent e7b8a79 commit 7a1c369

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.github/workflows/dockerhub-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ jobs:
2222
POSTGRES_VERSION=$(cat docker.vars.json | jq -r '.["postgres-version"]')
2323
echo "::set-output name=postgres_version::$POSTGRES_VERSION"
2424
25-
PLATFORM=$(cat docker.vars.json | jq -r '.["platform"]')
26-
echo "::set-output name=platform::$PLATFORM"
27-
2825
- uses: docker/setup-qemu-action@v1
2926
with:
3027
platforms: amd64,arm64
@@ -43,5 +40,4 @@ jobs:
4340
tags: supabase/postgres:latest,supabase/postgres:${{ steps.settings.outputs.docker_version }}
4441
platforms: linux/amd64,linux/arm64
4542
build-args: |
46-
"PLATFORM=${{steps.settings.outputs.platform}}"
4743
"VERSION=${{steps.settings.outputs.postgres_version}}"

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
ARG PLATFORM
21
ARG VERSION
32

4-
FROM --platform=$PLATFORM postgres:$VERSION
3+
FROM postgres:$VERSION
54

65
COPY ansible/ /tmp/ansible/
76

docker.vars.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"docker-version": "14.1.0.15",
3-
"postgres-version": "14.1",
4-
"platform": "linux/amd64"
5-
}
6-
2+
"docker-version": "14.1.0.15",
3+
"postgres-version": "14.1"
4+
}

0 commit comments

Comments
 (0)
0