File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ permissions:
7
7
pull-requests : write
8
8
packages : write
9
9
10
+ env :
11
+ COMPOSE_EXPERIMENTAL_OCI_REMOTE : " 1"
12
+
10
13
jobs :
11
14
publish :
12
15
runs-on : ubuntu-latest
13
- env :
14
- COMPOSE_EXPERIMENTAL_OCI_REMOTE : " 1"
15
16
steps :
16
17
- uses : actions/checkout@v4
17
18
- uses : docker/setup-buildx-action@v3
@@ -20,14 +21,17 @@ jobs:
20
21
registry : ghcr.io
21
22
username : ${{ github.repository_owner }}
22
23
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 }}
25
31
26
32
config :
27
33
needs : publish
28
34
runs-on : ubuntu-latest
29
- env :
30
- COMPOSE_EXPERIMENTAL_OCI_REMOTE : " 1"
31
35
steps :
32
36
- uses : actions/checkout@v4
33
37
- run : docker info
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ x-base:
11
11
services :
12
12
primary :
13
13
<< : *base
14
- image : ghcr.io/withlogicco/postgres/primary
14
+ image : ghcr.io/withlogicco/postgres/primary:${DOCKER_IMAGE_TAG:-latest}
15
15
build :
16
16
context : postgres
17
17
target : primary
@@ -20,7 +20,7 @@ services:
20
20
21
21
secondary :
22
22
<< : *base
23
- image : ghcr.io/withlogicco/postgres/secondary
23
+ image : ghcr.io/withlogicco/postgres/secondary:${DOCKER_IMAGE_TAG:-latest}
24
24
build :
25
25
context : postgres
26
26
target : secondary
@@ -29,7 +29,7 @@ services:
29
29
- secondary_data:/var/lib/postgresql/data
30
30
31
31
pgpool2 :
32
- image : ghcr.io/withlogicco/postgres/pgpool2
32
+ image : ghcr.io/withlogicco/postgres/pgpool2:${DOCKER_IMAGE_TAG:-latest}
33
33
build :
34
34
context : pgpool2
35
35
secrets :
You can’t perform that action at this time.
0 commit comments