File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ permissions:
77 pull-requests : write
88 packages : write
99
10+ env :
11+ COMPOSE_EXPERIMENTAL_OCI_REMOTE : " 1"
12+
1013jobs :
1114 publish :
1215 runs-on : ubuntu-latest
13- env :
14- COMPOSE_EXPERIMENTAL_OCI_REMOTE : " 1"
1516 steps :
1617 - uses : actions/checkout@v4
1718 - uses : docker/setup-buildx-action@v3
@@ -20,14 +21,17 @@ jobs:
2021 registry : ghcr.io
2122 username : ${{ github.repository_owner }}
2223 password : ${{ secrets.GITHUB_TOKEN }}
23- - run : docker compose build --push
24- - run : docker compose alpha publish ghcr.io/withlogicco/postgres
24+ - run : |
25+ wget https://github.com/docker/compose/releases/download/v2.30.3/docker-compose-linux-x86_64
26+ mv docker-compose-linux-x86_64 compose-v2.30
27+ chmod +x compose-v2.30
28+ mv compose-v2.30 /usr/local/bin
29+ - run : compose-v2.30 build --push
30+ - run : compose-v2.30 alpha publish ghcr.io/withlogicco/postgres:${{ github.sha }}
2531
2632 config :
2733 needs : publish
2834 runs-on : ubuntu-latest
29- env :
30- COMPOSE_EXPERIMENTAL_OCI_REMOTE : " 1"
3135 steps :
3236 - uses : actions/checkout@v4
3337 - run : docker info
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ x-base:
1111services :
1212 primary :
1313 << : *base
14- image : ghcr.io/withlogicco/postgres/primary
14+ image : ghcr.io/withlogicco/postgres/primary:${DOCKER_IMAGE_TAG:-latest}
1515 build :
1616 context : postgres
1717 target : primary
@@ -20,7 +20,7 @@ services:
2020
2121 secondary :
2222 << : *base
23- image : ghcr.io/withlogicco/postgres/secondary
23+ image : ghcr.io/withlogicco/postgres/secondary:${DOCKER_IMAGE_TAG:-latest}
2424 build :
2525 context : postgres
2626 target : secondary
@@ -29,7 +29,7 @@ services:
2929 - secondary_data:/var/lib/postgresql/data
3030
3131 pgpool2 :
32- image : ghcr.io/withlogicco/postgres/pgpool2
32+ image : ghcr.io/withlogicco/postgres/pgpool2:${DOCKER_IMAGE_TAG:-latest}
3333 build :
3434 context : pgpool2
3535 secrets :
You can’t perform that action at this time.
0 commit comments