Skip to content

feat: add sharp

feat: add sharp #635

Workflow file for this run

name: build
on:
push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Scaleway Registry
uses: docker/login-action@v2
with:
registry: rg.fr-par.scw.cloud/ultrasoundmoney
username: ${{ secrets.SCALEWAY_API_KEY }}
password: ${{ secrets.SCALEWAY_API_KEY }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: rg.fr-par.scw.cloud/ultrasoundmoney/frontend
# type=raw,latest
tags: |
type=sha,prefix=
# TODO: Reactivate when test issues with api latency are fixed
# - name: Wait for tests to succeed
# uses: lewagon/[email protected]
# with:
# ref: ${{ github.ref }}
# check-name: test
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# wait-interval: 10
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=rg.fr-par.scw.cloud/ultrasoundmoney/frontend
cache-to: type=inline
secrets: |
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}"
"NEXT_PUBLIC_TAGS=${{ github.ref_name }}"
"NEXT_PUBLIC_COMMIT=${{ github.sha }}"