Skip to content

Commit e5c3dec

Browse files
committed
Solve bugs on docker ci.
1 parent 69f9af6 commit e5c3dec

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

.github/workflows/docker-hub-platform.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Push Docker Image for Multiple Platforms
1+
name: Build and Push Docker Image for Multiple Architectures
22

33
on:
44
# To enable manual triggering of this workflow
@@ -37,10 +37,11 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939

40-
- name: Define Platform Pair
40+
- name: Define Platform
4141
run: |
42-
platform=${{ matrix.platform }}
43-
echo "METACALL_PLATFORM=${platform//\//-}" >> $GITHUB_ENV
42+
PLATFORM=${{ matrix.platform }}
43+
echo "METACALL_PLATFORM=${PLATFORM}" >> $GITHUB_ENV
44+
echo "METACALL_PLATFORM_PAIR=${PLATFORM//\//-}" >> $GITHUB_ENV
4445
4546
- name: Docker Metadata
4647
id: meta
@@ -84,7 +85,7 @@ jobs:
8485
# - name: Upload Digest
8586
# uses: actions/upload-artifact@v4
8687
# with:
87-
# name: digests-${{ env.METACALL_PLATFORM }}
88+
# name: digests-${{ env.METACALL_PLATFORM_PAIR }}
8889
# path: /tmp/digests/*
8990
# if-no-files-found: error
9091
# retention-days: 1

docker-compose.platform.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,16 @@ version: "3.7"
2222
services:
2323
deps:
2424
image: metacall/core:deps
25-
platform:
26-
- ${METACALL_PLATFORM}
25+
platform: ${METACALL_PLATFORM}
2726

2827
dev:
2928
image: metacall/core:dev
30-
platform:
31-
- ${METACALL_PLATFORM}
29+
platform: ${METACALL_PLATFORM}
3230

3331
runtime:
3432
image: metacall/core:runtime
35-
platform:
36-
- ${METACALL_PLATFORM}
33+
platform: ${METACALL_PLATFORM}
3734

3835
cli:
3936
image: metacall/core:cli
40-
platform:
41-
- ${METACALL_PLATFORM}
37+
platform: ${METACALL_PLATFORM}

0 commit comments

Comments
 (0)