291st/.github/workflows/Continues Integration.yaml
Workflow config file is invalid. Please check your config file: yaml: line 30: found character that cannot start any token

66 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:
name: Build dev
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@v3
with:
name: build-dev
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:
image: ztimson/test
registry_user: ztimson
registry_pass: ${{secrets.deploy_token}}