Skip to content
Merged

CD #46

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
config: Install Serverless
  • Loading branch information
diegotony committed Mar 25, 2021
commit b70963d23d78268a09124e004311f9a2e09aea55
10 changes: 7 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

# - uses: actions/setup-node@v1
# with:
# node-version: ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Serverless
run: npm install



6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ help: Makefile
@sed -n 's/^## //p' $<

## npm-install-functions -> Added dependencies in case that the functions need, add manually the command and Makefile
deploy-nodejs-functions:
cd nodejs-functions ; pwd ; $(MAKE) functions-with-dependencies
install-dependencies-nodejs:
cd nodejs-functions ; pwd ; $(MAKE) install-dependencies-nodejs

deploy-nodejs:
cd nodejs-functions ; pwd ; $(MAKE) deploy
4 changes: 3 additions & 1 deletion nodejs-functions/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ help: Makefile
@sed -n 's/^## //p' $<

## npm-install-functions -> Added dependencies in case that the functions need, add manually the command and Makefile
functions-with-dependencies:
install-dependencies-nodejs:
cd src/handlers/automatic-clock-outs ; pwd ; $(MAKE) install

deploy:
sls deploy