From c3f764c53bdcf6e1392e685e55ea38ab64165299 Mon Sep 17 00:00:00 2001 From: sevenearths Date: Fri, 21 Jun 2024 11:52:24 +0100 Subject: [PATCH] (custom prepare statements for different oss) --- .../workflows/s2m_2_docker_build_on_oss.yml | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/s2m_2_docker_build_on_oss.yml b/.github/workflows/s2m_2_docker_build_on_oss.yml index bdcda7723..fb8508281 100644 --- a/.github/workflows/s2m_2_docker_build_on_oss.yml +++ b/.github/workflows/s2m_2_docker_build_on_oss.yml @@ -1,4 +1,4 @@ -name: ci +name: Build Docker Images on Multiple OS on: push: @@ -14,10 +14,19 @@ jobs: os: [ubuntu-latest, windows-latest, macos-latest] steps: - - name: Prepare + - name: Prepare (Linux, MacOS) run: | platform=${{ matrix.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV + shell: bash + if: runner.os != 'windows' + + - name: Prepare (windows) + run: | + $platform = "${{ matrix.platform }}" + Write-Host "PLATFORM_PAIR=$platform" >> $env:GITHUB_ENV + shell: pwsh + if: runner.os == 'windows' - name: Checkout code uses: actions/checkout@v2 @@ -27,6 +36,13 @@ jobs: - name: Copy .env.example to .env run: cp .env.example .env + - name: Set up MacOS environment + run: | + brew install docker + colima start + shell: bash + if: runner.os == 'macos' + - name: Docker meta id: meta uses: docker/metadata-action@v5