add help us improve field to all registrations #21
Workflow file for this run
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: Tests | ||
on: | ||
workflow_call: | ||
secrets: | ||
SENTRY_AUTH_TOKEN: | ||
required: true | ||
GHOST_CONTENT_KEY: | ||
required: true | ||
MONDOO_SECRET: | ||
required: true | ||
STRIPE_WEBHOOK_SECRET: | ||
required: true | ||
STRIPE_SECRET_KEY: | ||
required: true | ||
jobs: | ||
build-frontend: | ||
name: Build and scan frontend container image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Build | ||
uses: docker/build-push-action@v5 | ||
env: | ||
NODE_ENV: production | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
GHOST_API_URL: https://blog.podkrepi.bg | ||
GHOST_CONTENT_KEY: ${{ secrets.GHOST_CONTENT_KEY }} | ||
with: | ||
context: . | ||
push: false | ||
target: runner | ||
build-args: | | ||
SENTRY_AUTH_TOKEN=${{ env.SENTRY_AUTH_TOKEN }} | ||
GHOST_API_URL=${{ env.GHOST_API_URL }} | ||
GHOST_CONTENT_KEY=${{ env.GHOST_CONTENT_KEY }} | ||
tags: ghcr.io/podkrepi-bg/frontend:pr | ||
- name: Scan with Mondoo | ||
uses: mondoohq/actions/docker-image@main | ||
env: | ||
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }} | ||
with: | ||
image: ghcr.io/podkrepi-bg/frontend:pr | ||
build-maintenance: | ||
name: Build and scan maintenance container image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: false | ||
file: Dockerfile.maintenance | ||
tags: ghcr.io/podkrepi-bg/maintenance:pr | ||
- name: Scan with Mondoo | ||
uses: mondoohq/actions/docker-image@main | ||
env: | ||
MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }} | ||
with: | ||
image: ghcr.io/podkrepi-bg/maintenance:pr | ||
# scan-manifests: | ||
# name: Scan k8s manifests | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# ref: ${{ github.event.pull_request.head.sha }} | ||
# | ||
# - name: Install kustomize | ||
# uses: imranismail/setup-kustomize@v2 | ||
# | ||
# - name: Build development manifests | ||
# run: kustomize build manifests/overlays/development > dev-manifests.yaml | ||
# | ||
# - name: Scan development manifests with Mondoo | ||
# uses: mondoohq/actions/k8s-manifest@main | ||
# env: | ||
# MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }} | ||
# with: | ||
# path: dev-manifests.yaml | ||
# | ||
# - name: Build production manifests | ||
# run: kustomize build manifests/overlays/production > prod-manifests.yaml | ||
# | ||
# - name: Scan production manifests with Mondoo | ||
# uses: mondoohq/actions/k8s-manifest@main | ||
# env: | ||
# MONDOO_CONFIG_BASE64: ${{ secrets.MONDOO_SECRET }} | ||
# with: | ||
# path: prod-manifests.yaml | ||
run-playwright: | ||
name: Run Playwright | ||
uses: ./.github/workflows/playwright.yml | ||
secrets: inherit |