Skip to content

Class extends value #<newConstructor> is not a constructor or null #6

Class extends value #<newConstructor> is not a constructor or null

Class extends value #<newConstructor> is not a constructor or null #6

Workflow file for this run

name: Deploy app (dev)
on:
push:
branches:
- 'next'
workflow_dispatch:
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install
run: npm install
- name: Launch tests
run: npm run test
deploy:
name: Deploy app
runs-on: ubuntu-latest
needs: [tests]
steps:
- name: Checkout Ansible
uses: actions/checkout@v3
with:
fetch-depth: 0
repository: thefirstspine/ansible
- name: Get config
uses: actions/checkout@v3
with:
fetch-depth: 0
repository: thefirstspine/ansible-secrets-dev
path: tmp
token: ${{ secrets.ACCESS_TOKEN }}
- name: Get inventory
run: |
rm -rf volume/conf
rm -rf volume/keys
mv tmp/conf volume/conf
mv tmp/keys volume/keys
- name: Build Docker image
run: |
docker build -t thefirstspine/ansible .
- name: Run thefirstspine/ansible image
run: |
docker run --rm -v ./volume:/volume -e BRANCH=next thefirstspine/ansible ansible-playbook -i /volume/conf/inventory.yaml /volume/playbooks/deploy-website.yaml