Skip to content

Commit

Permalink
build(CI): Simplifie les étapes de build communes
Browse files Browse the repository at this point in the history
  • Loading branch information
farnoux committed Oct 2, 2024
1 parent 8b9ad47 commit a00bfff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ jobs:
- name: Build and push app image
run: earthly --use-inline-cache --save-inline-cache --push +app-build --ANON_KEY=${{ secrets.ANON_KEY }} --API_URL=${{ secrets.API_URL }}

build-setup:
uses: ./.github/workflows/shared-build-setup.yml
secrets: inherit

build-auth-dev:
runs-on: ubuntu-latest

needs: build-setup
steps:
- uses: ./.github/workflows/shared-build-setup.yml

- name: Build and push auth. image
run: earthly --use-inline-cache --save-inline-cache --push +auth-build --ANON_KEY=${{ secrets.ANON_KEY }} --API_URL=${{ secrets.API_URL }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/shared-build-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: workflow_call
jobs:
shared-build-setup:
runs-on: ubuntu-latest
environment: dev

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit a00bfff

Please sign in to comment.