mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 09:10:32 +00:00
fix: smoke test image tag v-prefix mismatch (#101)
* fix: smoke test uses semver tag (0.4.0) not git ref (v0.4.0) github.ref_name = v0.4.0 but Docker metadata strips the v prefix, so the image is tagged 0.4.0. Use steps.meta-alpine.outputs.version which matches the actual image tag. * ci: add actionlint to catch workflow syntax errors on PRs Prevents broken release.yml from reaching main. Catches: syntax errors in run scripts, invalid step output references, missing image names, and other GitHub Actions misconfigurations.
This commit is contained in:
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@@ -136,7 +136,7 @@ jobs:
|
||||
- name: Smoke test — verify alpine image starts and responds
|
||||
run: |
|
||||
docker rm -f nora-smoke 2>/dev/null || true
|
||||
docker run --rm -d --name nora-smoke -p 5555:4000 -e NORA_HOST=0.0.0.0 ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
||||
docker run --rm -d --name nora-smoke -p 5555:4000 -e NORA_HOST=0.0.0.0 ghcr.io/${{ github.repository }}:${{ steps.meta-alpine.outputs.version }}
|
||||
for i in $(seq 1 10); do
|
||||
curl -sf http://localhost:5555/health && break || sleep 2
|
||||
done
|
||||
@@ -299,17 +299,17 @@ jobs:
|
||||
|
||||
**Alpine (standard):**
|
||||
```bash
|
||||
docker pull ghcr.io/${{ github.repository }}:${{ github.ref_name }}
|
||||
docker pull ghcr.io/${{ github.repository }}:${{ steps.ver.outputs.tag }}
|
||||
```
|
||||
|
||||
**RED OS:**
|
||||
```bash
|
||||
docker pull ghcr.io/${{ github.repository }}:${{ github.ref_name }}-redos
|
||||
docker pull ghcr.io/${{ github.repository }}:${{ steps.ver.outputs.tag }}-redos
|
||||
```
|
||||
|
||||
**Astra Linux SE:**
|
||||
```bash
|
||||
docker pull ghcr.io/${{ github.repository }}:${{ github.ref_name }}-astra
|
||||
docker pull ghcr.io/${{ github.repository }}:${{ steps.ver.outputs.tag }}-astra
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
||||
Reference in New Issue
Block a user