Skip to content

v0.1.0 - Detection-First Starter #1

v0.1.0 - Detection-First Starter

v0.1.0 - Detection-First Starter #1

Workflow file for this run

name: Release Smoke
on:
release:
types:
- published
workflow_dispatch:
inputs:
tag:
description: "Release tag to smoke test, for example v0.1.0"
required: true
type: string
permissions:
contents: read
packages: read
jobs:
smoke:
name: Smoke Test Published Images
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Resolve release tag and owner
id: vars
shell: bash
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "tag=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"
else
echo "tag=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
fi
echo "owner=${GITHUB_REPOSITORY_OWNER,,}" >> "$GITHUB_OUTPUT"
- name: Checkout repository at release tag
uses: actions/checkout@v4
with:
ref: ${{ steps.vars.outputs.tag }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Smoke test published backend and frontend images
run: npm run check:release-smoke
env:
BACKEND_IMAGE: ghcr.io/${{ steps.vars.outputs.owner }}/nextjs-python-computer-vision-kit-backend:${{ steps.vars.outputs.tag }}
FRONTEND_IMAGE: ghcr.io/${{ steps.vars.outputs.owner }}/nextjs-python-computer-vision-kit-frontend:${{ steps.vars.outputs.tag }}