chore(deps): update dependency @prisma/generator-helper to ~5.19.0 #448
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: Test and build | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build and lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- run: nix flake check | |
- name: yarn install | |
run: nix develop --command yarn install --immutable | |
- name: yarn lint | |
run: nix develop --command yarn lint | |
- name: yarn build | |
run: nix develop --command yarn build | |
docker: | |
name: Build Docker container and push to registry | |
# Only run on pushes to dev & master | |
if: | |
${{ contains(fromJson('["master", "dev"]'), github.ref_name) && | |
github.event_name == 'push' }} | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to ghcr.io registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set tag name | |
id: tag | |
run: | |
'echo "::set-output name=tag::${{ github.ref_name == ''master'' && | |
''latest'' || github.ref_name }}"' | |
- name: Build & push container | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: | | |
ghcr.io/ovyerus/prismaliser:${{ steps.tag.outputs.tag }} | |
ovyerus/prismaliser:${{ steps.tag.outputs.tag }} |