Updated build scripts #10
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: Build and push the edge image | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
run-pre-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: | | |
npm ci | |
npm run build | |
npm run formatter | |
npm run tslint | |
build-publish-docker-hub: | |
needs: run-pre-checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: azure/docker-login@v1 | |
with: | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- uses: actions/checkout@v3 | |
- name: Build and Push Edge to DockerHub | |
shell: bash | |
run: ./.github/scripts/build_and_push_edge.sh |