Skip to content

Commit

Permalink
feat: build & upload static assets before docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed May 15, 2024
1 parent 29569b9 commit d143a80
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ jobs:
- name: move files
run: |
mv .docker/resources/org/kiva/marketplaceWebUiCi/ui/Dockerfile .
- name: build static assets
uses: ./.github/actions/npm-run
with:
command: "build"
- name: docker-build
uses: ./.github/actions/docker-build-push
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -76,10 +80,18 @@ jobs:
- name: move files
run: |
mv .docker/resources/org/kiva/marketplaceWebUiCi/ui/Dockerfile .
- name: build static assets
uses: ./.github/actions/npm-run
with:
command: "build"
- name: upload static assets
uses: ./.github/actions/upload-static-assets
with:
source_dir: "ui/dist"
include: "static/*"
cache_control: "public,max-age=31536000"
- name: docker-push
uses: ./.github/actions/docker-build-push
with:
dockerfile_target: "release"
push: true
upload_source_dir: "ui/dist"
upload_include: "static/*"

0 comments on commit d143a80

Please sign in to comment.