-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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] | ||
|