Update .github/workflows/Continues Integration.yaml
This commit is contained in:
parent
4c3746e347
commit
6b756f34e8
39
.github/workflows/Continues Integration.yaml
vendored
39
.github/workflows/Continues Integration.yaml
vendored
@ -7,7 +7,8 @@ jobs:
|
|||||||
container: git.zakscode.com/ztimson/runner
|
container: git.zakscode.com/ztimson/runner
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Restore node_modules
|
- name: Restore node_modules
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
@ -26,13 +27,14 @@ jobs:
|
|||||||
key: node_modules
|
key: node_modules
|
||||||
restore-keys: node_modules
|
restore-keys: node_modules
|
||||||
|
|
||||||
build:
|
build-dev:
|
||||||
name: Build dev
|
name: Build dev
|
||||||
needs: dependencies
|
needs: dependencies
|
||||||
container: git.zakscode.com/ztimson/runner
|
container: git.zakscode.com/ztimson/runner
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Restore node_modules
|
- name: Restore node_modules
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
@ -42,7 +44,7 @@ jobs:
|
|||||||
restore-keys: node_modules
|
restore-keys: node_modules
|
||||||
|
|
||||||
- name: Build sources
|
- name: Build sources
|
||||||
run: npm run build
|
run: npm run build:dev
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@ -50,16 +52,43 @@ jobs:
|
|||||||
name: build-dev
|
name: build-dev
|
||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
|
build-prod:
|
||||||
|
name: Build dev
|
||||||
|
needs: dependencies
|
||||||
|
container: git.zakscode.com/ztimson/runner
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Restore node_modules
|
||||||
|
uses: actions/cache/restore@v3
|
||||||
|
with:
|
||||||
|
path: ./node_modules
|
||||||
|
key: node_modules
|
||||||
|
restore-keys: node_modules
|
||||||
|
|
||||||
|
- name: Build sources
|
||||||
|
run: npm run build:prod
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-prod
|
||||||
|
path: dist/
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
# needs: dependencies
|
# needs: dependencies
|
||||||
name: Push docker image
|
name: Push docker image
|
||||||
container: git.zakscode.com/ztimson/runner
|
container: git.zakscode.com/ztimson/runner
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: ztimson/actions/docker@develop
|
- uses: ztimson/actions/docker@develop
|
||||||
with:
|
with:
|
||||||
image: ztimson/test
|
image: ztimson/test
|
||||||
|
registry: git.zakscode.com
|
||||||
registry_user: ztimson
|
registry_user: ztimson
|
||||||
registry_pass: ${{secrets.deploy_token}}
|
registry_pass: ${{secrets.deploy_token}}
|
||||||
|
Loading…
Reference in New Issue
Block a user