mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: Feat/flow (#131)
* fix * fix * fix * fix * Update docker.yml * Update auto-release.yml * Update pr-checker.yml --------- Co-authored-by: Théo LAGACHE <theo.lagache@soluce-technologies.com>
This commit is contained in:
co-authored by
Théo LAGACHE
parent
4799faa827
commit
346a8a4375
@@ -9,7 +9,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
dry-run:
|
dry-run:
|
||||||
name: Dry run
|
name: Dry run
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || 'ubuntu-24.04-arm' }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
platform: [linux/amd64, linux/arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -22,7 +26,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/dockerfile/Dockerfile
|
file: ./docker/dockerfile/Dockerfile
|
||||||
|
platforms: ${{ matrix.platform }}
|
||||||
push: false
|
push: false
|
||||||
tags: portabase/portabase:pr-${{ github.event.number }}
|
tags: portabase/portabase:pr-${{ github.event.number }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha,scope=build-${{ matrix.platform }}
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max,scope=build-${{ matrix.platform }}
|
||||||
|
|
||||||
|
- name: Prepare Artifact Data
|
||||||
|
id: prep
|
||||||
|
run: |
|
||||||
|
SAFE_PLATFORM=${{ matrix.platform == 'linux/amd64' && 'linux-amd64' || 'linux-arm64' }}
|
||||||
|
echo "safe_platform=$SAFE_PLATFORM" >> $GITHUB_OUTPUT
|
||||||
|
echo "portabase/portabase:pr-${{ github.event.number }}" > image.txt
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: image-${{ steps.prep.outputs.safe_platform }}
|
||||||
|
path: image.txt
|
||||||
|
retention-days: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user