Merge pull request #29 from appventure-nush/student-auth #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
# TODO: Remove vue when merged into main | |
on: | |
push: | |
branches: | |
- main | |
- vue | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
cd frontend | |
npm ci | |
npm run build | |
mkdir ../server/built | |
mv dist ../server/built/public | |
- name: Push image to AppVenture registry | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
registry: registry.nush.app | |
repository: nush-link | |
tags: latest |