2023-07-28 10:36:55 -04:00
|
|
|
name: Continues Integration
|
2023-07-28 10:01:28 -04:00
|
|
|
on: [push, workflow_dispatch]
|
2023-07-26 21:11:30 -04:00
|
|
|
|
|
|
|
jobs:
|
2023-07-28 10:28:58 -04:00
|
|
|
dependencies:
|
|
|
|
name: Install dependencies
|
2023-07-28 13:16:51 -04:00
|
|
|
container: git.zakscode.com/ztimson/runner
|
2023-07-26 21:11:30 -04:00
|
|
|
steps:
|
2023-07-28 13:16:51 -04:00
|
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Restore node_modules
|
2023-07-26 23:32:41 -04:00
|
|
|
uses: actions/cache/restore@v3
|
|
|
|
with:
|
2023-07-26 23:57:19 -04:00
|
|
|
path: ./node_modules
|
2023-07-26 23:36:40 -04:00
|
|
|
key: node_modules
|
2023-07-27 00:03:17 -04:00
|
|
|
restore-keys: node_modules
|
2023-07-28 13:16:51 -04:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-07-26 23:57:19 -04:00
|
|
|
run: npm ci
|
2023-07-28 13:16:51 -04:00
|
|
|
|
|
|
|
- name: Cache node_modules
|
2023-07-26 21:53:35 -04:00
|
|
|
uses: actions/cache@v3
|
2023-07-26 21:47:07 -04:00
|
|
|
with:
|
2023-07-26 23:57:19 -04:00
|
|
|
path: ./node_modules
|
2023-07-26 23:36:40 -04:00
|
|
|
key: node_modules
|
2023-07-27 00:03:17 -04:00
|
|
|
restore-keys: node_modules
|
2023-07-28 13:16:51 -04:00
|
|
|
|
|
|
|
build:
|
|
|
|
needs: dependencies
|
|
|
|
container: git.zakscode.com/ztimson/runner
|
|
|
|
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
|
2023-07-28 11:11:42 -04:00
|
|
|
name: Push docker image
|
2023-07-28 13:16:51 -04:00
|
|
|
container: git.zakscode.com/ztimson/runner
|
2023-07-28 10:45:27 -04:00
|
|
|
steps:
|
|
|
|
|
2023-07-28 13:16:51 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2023-07-28 10:47:29 -04:00
|
|
|
- uses: ztimson/actions/docker@develop
|
2023-07-28 10:45:27 -04:00
|
|
|
with:
|
|
|
|
registry_pass: ${{secrets.deploy_token}}
|