Update .github/workflows/Continues Integration.yaml
Some checks reported warnings
Some checks reported warnings
This commit is contained in:
parent
c366458652
commit
7549b8e01f
37
.github/workflows/Continues Integration.yaml
vendored
37
.github/workflows/Continues Integration.yaml
vendored
@ -46,14 +46,12 @@ jobs:
|
|||||||
- name: Build sources
|
- name: Build sources
|
||||||
run: npm run build:dev
|
run: npm run build:dev
|
||||||
|
|
||||||
- name: Compress artifacts
|
- name: Cache build artifacts
|
||||||
run: tar -czvf dist.tar.gz dist
|
uses: actions/cache@v3
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: build-dev
|
path: ./dist
|
||||||
path: dist.tar.gz
|
key: dist-dev
|
||||||
|
restore-keys: dist-dev
|
||||||
|
|
||||||
build-prod:
|
build-prod:
|
||||||
name: Build production
|
name: Build production
|
||||||
@ -74,14 +72,12 @@ jobs:
|
|||||||
- name: Build sources
|
- name: Build sources
|
||||||
run: npm run build:prod
|
run: npm run build:prod
|
||||||
|
|
||||||
- name: Compress artifacts
|
- name: Cache build artifacts
|
||||||
run: tar -czvf dist.tar.gz dist
|
uses: actions/cache@v3
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: build-prod
|
path: ./dist
|
||||||
path: dist.tar.gz
|
key: dist-prod
|
||||||
|
restore-keys: dist-prod
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
name: Build docker image
|
name: Build docker image
|
||||||
@ -92,19 +88,16 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Download production build
|
- name: Restore build artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
name: build-prod
|
path: ./dist
|
||||||
path: dist.tar.gz
|
key: dist-prod
|
||||||
|
restore-keys: dist-prod
|
||||||
- name: Extract artifacts
|
|
||||||
run: tar -xzvf dist.tar.gz
|
|
||||||
|
|
||||||
- name: Build docker image
|
- name: Build docker image
|
||||||
uses: ztimson/actions/docker/build@develop
|
uses: ztimson/actions/docker/build@develop
|
||||||
|
|
||||||
|
|
||||||
- name: Push docker image
|
- name: Push docker image
|
||||||
uses: ztimson/actions/docker/push@develop
|
uses: ztimson/actions/docker/push@develop
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user