Skip to content

Commit

Permalink
(custom prepare statements for different oss)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenearths committed Jun 21, 2024
1 parent 9360cb4 commit c3f764c
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/s2m_2_docker_build_on_oss.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: Build Docker Images on Multiple OS

on:
push:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c3f764c

Please sign in to comment.