Update .github/workflows/Continues Integration.yaml
This commit is contained in:
parent
6b29d7ce08
commit
44c2f162bf
50
.github/workflows/Continues Integration.yaml
vendored
50
.github/workflows/Continues Integration.yaml
vendored
@ -4,31 +4,59 @@ on: [push, workflow_dispatch]
|
|||||||
jobs:
|
jobs:
|
||||||
dependencies:
|
dependencies:
|
||||||
name: Install dependencies
|
name: Install dependencies
|
||||||
container: node:16
|
container: git.zakscode.com/ztimson/runner
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Restore Cached Dependencies
|
|
||||||
|
- name: Restore node_modules
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: ./node_modules
|
path: ./node_modules
|
||||||
key: node_modules
|
key: node_modules
|
||||||
restore-keys: node_modules
|
restore-keys: node_modules
|
||||||
- name: Install Dependencies
|
|
||||||
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Cache Dependencies
|
|
||||||
|
- name: Cache node_modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ./node_modules
|
path: ./node_modules
|
||||||
key: node_modules
|
key: node_modules
|
||||||
restore-keys: node_modules
|
restore-keys: node_modules
|
||||||
Docker:
|
|
||||||
name: Push docker image
|
build:
|
||||||
container: git.zakscode.com/ztimson/ubuntu-docker:latest
|
needs: dependencies
|
||||||
|
container: git.zakscode.com/ztimson/runner
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
- 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
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: dist
|
||||||
|
path: dist/
|
||||||
|
|
||||||
|
docker:
|
||||||
|
# needs: dependencies
|
||||||
|
name: Push docker image
|
||||||
|
container: git.zakscode.com/ztimson/runner
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: ztimson/actions/docker@develop
|
- uses: ztimson/actions/docker@develop
|
||||||
with:
|
with:
|
||||||
image: ztimson/291st
|
|
||||||
registry_user: ztimson
|
|
||||||
registry_pass: ${{secrets.deploy_token}}
|
registry_pass: ${{secrets.deploy_token}}
|
||||||
|
Loading…
Reference in New Issue
Block a user