Skip to content

Commit

Permalink
Solve bugs on docker ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Aug 13, 2024
1 parent 69f9af6 commit e5c3dec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker-hub-platform.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Push Docker Image for Multiple Platforms
name: Build and Push Docker Image for Multiple Architectures

on:
# To enable manual triggering of this workflow
Expand Down Expand Up @@ -37,10 +37,11 @@ jobs:
with:
fetch-depth: 0

- name: Define Platform Pair
- name: Define Platform
run: |
platform=${{ matrix.platform }}
echo "METACALL_PLATFORM=${platform//\//-}" >> $GITHUB_ENV
PLATFORM=${{ matrix.platform }}
echo "METACALL_PLATFORM=${PLATFORM}" >> $GITHUB_ENV
echo "METACALL_PLATFORM_PAIR=${PLATFORM//\//-}" >> $GITHUB_ENV
- name: Docker Metadata
id: meta
Expand Down Expand Up @@ -84,7 +85,7 @@ jobs:
# - name: Upload Digest
# uses: actions/upload-artifact@v4
# with:
# name: digests-${{ env.METACALL_PLATFORM }}
# name: digests-${{ env.METACALL_PLATFORM_PAIR }}
# path: /tmp/digests/*
# if-no-files-found: error
# retention-days: 1
Expand Down
12 changes: 4 additions & 8 deletions docker-compose.platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,16 @@ version: "3.7"
services:
deps:
image: metacall/core:deps
platform:
- ${METACALL_PLATFORM}
platform: ${METACALL_PLATFORM}

dev:
image: metacall/core:dev
platform:
- ${METACALL_PLATFORM}
platform: ${METACALL_PLATFORM}

runtime:
image: metacall/core:runtime
platform:
- ${METACALL_PLATFORM}
platform: ${METACALL_PLATFORM}

cli:
image: metacall/core:cli
platform:
- ${METACALL_PLATFORM}
platform: ${METACALL_PLATFORM}

0 comments on commit e5c3dec

Please sign in to comment.