291st/.github/workflows/Continues Integration.yaml
Zakary Timson 54ceab4d52
Some checks failed
Continues Integration / Push docker image (push) Failing after 29s
Continues Integration / Install dependencies (push) Successful in 1m20s
Continues Integration / build (push) Failing after 2m13s
Update .github/workflows/Continues Integration.yaml
2023-07-28 17:17:07 +00:00

63 lines
1.4 KiB
YAML

name: Continues Integration
on: [push, workflow_dispatch]
jobs:
dependencies:
name: Install 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: Install dependencies
run: npm ci
- name: Cache node_modules
uses: actions/cache@v3
with:
path: ./node_modules
key: node_modules
restore-keys: node_modules
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
name: Push docker image
container: git.zakscode.com/ztimson/runner
steps:
- uses: actions/checkout@v3
- uses: ztimson/actions/docker@develop
with:
registry_pass: ${{secrets.deploy_token}}