Merge pull request #266 from BrainBackup/snyk-fix-bfb6266eefcd97e0c96… #486
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: Auth-service | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./auth-service | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build, lint and tests | |
run: | | |
yarn | |
yarn run lint | |
# yarn run test | |
# yarn run test:cov | |
working-directory: ${{ env.working-directory }} | |
- name: Build the Auth service Docker image and publish to GitHub Packages | |
working-directory: ${{ env.working-directory }} | |
run: | | |
docker build . --tag docker.pkg.github.com/brainbackup/bb8/$SERVICE_NAME:$VERSION | |
docker login docker.pkg.github.com --username ynahmany --password ${{ secrets.GITHUB_TOKEN }} | |
docker push docker.pkg.github.com/brainbackup/bb8/$SERVICE_NAME:$VERSION | |
env: | |
VERSION: latest | |
SERVICE_NAME: auth-service |