Skip to content

Commit

Permalink
Isolate Node and Docker usage
Browse files Browse the repository at this point in the history
Refs #31
  • Loading branch information
thewilkybarkid committed Jul 5, 2024
1 parent 20ebe60 commit b5a1881
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,16 @@ env:
OBSERVABLE_TELEMETRY_DISABLE: 1

jobs:
build-image:
name: 'Build image'
build-dist:
name: 'Build dist'
runs-on: ubuntu-22.04
timeout-minutes: 30
if: github.ref == 'refs/heads/main'
outputs:
image: ${{ steps.build.outputs.imageid }}

steps:
- name: 'Checkout code'
uses: actions/[email protected]

- name: 'Set up Docker Build'
uses: docker/[email protected]

- name: 'Set up Node.js'
uses: actions/[email protected]
with:
Expand All @@ -58,6 +53,35 @@ jobs:
env:
PREREVIEW_REVIEWS_DATA_TOKEN: ${{ secrets.PREREVIEW_REVIEWS_DATA_TOKEN }}

- name: 'Upload build'
uses: actions/[email protected]
with:
name: dist
path: dist/

build-image:
name: 'Build image'
runs-on: ubuntu-22.04
timeout-minutes: 30
if: github.ref == 'refs/heads/main' && !failure() && !cancelled()
outputs:
image: ${{ steps.build.outputs.imageid }}
needs:
- build-dist

steps:
- name: 'Checkout code'
uses: actions/[email protected]

- name: 'Set up Docker Build'
uses: docker/[email protected]

- name: 'Download dist'
uses: actions/[email protected]
with:
name: dist
path: dist/

- name: 'Build image'
id: build
uses: docker/[email protected]
Expand Down

0 comments on commit b5a1881

Please sign in to comment.