Skip to content

fix(client): give errorCallback a message instead of undefined #40

fix(client): give errorCallback a message instead of undefined

fix(client): give errorCallback a message instead of undefined #40

Workflow file for this run

name: Publish Docker Image
on:
push:
tags:
- 'v*'
workflow_dispatch:
env:
IMAGE_NAME: webdecoy/fcaptcha
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from tag
id: version
env:
REF_TYPE: ${{ github.ref_type }}
REF_NAME: ${{ github.ref_name }}
run: |
TAGS="ghcr.io/${IMAGE_NAME}:latest"
if [[ "$REF_TYPE" == "tag" ]]; then
VERSION="${REF_NAME#v}"
TAGS="${TAGS},ghcr.io/${IMAGE_NAME}:${VERSION}"
fi
echo "tags=${TAGS}" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: docker/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.version.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max