Skip to content

Model should be brief and redact full pages only as a last resort #21

Model should be brief and redact full pages only as a last resort

Model should be brief and redact full pages only as a last resort #21

Workflow file for this run

name: Docker
on:
push:
tags: ['v*']
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- image-suffix: ""
base-path: ""
- image-suffix: "-with-base-path"
base-path: "/easyredact"
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v3
- id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}${{ matrix.image-suffix }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest
- uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64
build-args: BASE_PATH=${{ matrix.base-path }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy-azure:
needs: build
runs-on: ubuntu-latest
if: ${{ !cancelled() && needs.build.result == 'success' }}
steps:
- run: curl -fsSL -X POST "$WEBHOOK_URL"
env:
WEBHOOK_URL: ${{ secrets.AZURE_WEBAPP_WEBHOOK_URL }}