-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.6 KB
/
release-smoke.yml
File metadata and controls
56 lines (49 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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@v6
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 }}