fix: some stuff with ci
This commit is contained in:
@@ -42,6 +42,9 @@
|
|||||||
"**/*-lock.yaml",
|
"**/*-lock.yaml",
|
||||||
"**/yaml.lock",
|
"**/yaml.lock",
|
||||||
"**/.DS_Store",
|
"**/.DS_Store",
|
||||||
|
"**/.pnpm-store",
|
||||||
|
"**/.cargo",
|
||||||
|
"**/target",
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"https://plugins.dprint.dev/typescript-0.95.13.wasm",
|
"https://plugins.dprint.dev/typescript-0.95.13.wasm",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ git fetch origin "refs/tags/$TAG:refs/tags/$TAG" --force
|
|||||||
|
|
||||||
# %(contents) gets the whole message.
|
# %(contents) gets the whole message.
|
||||||
# If you want ONLY what you typed after the first line, use %(contents:body)
|
# If you want ONLY what you typed after the first line, use %(contents:body)
|
||||||
NOTES=$(git tag -l "$TAG" --format='%(contents)')
|
NOTES=$(git tag -l "$TAG" --format='%(contents)' | sed '/-----BEGIN PGP SIGNATURE-----/,/-----END PGP SIGNATURE-----/d')
|
||||||
|
|
||||||
if [ -z "$(echo "$NOTES" | tr -d '[:space:]')" ]; then
|
if [ -z "$(echo "$NOTES" | tr -d '[:space:]')" ]; then
|
||||||
echo "❌ Tag message is empty or tag is not annotated"
|
echo "❌ Tag message is empty or tag is not annotated"
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ name: Build & Push CI Image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
paths:
|
paths:
|
||||||
- "Dockerfile.ci"
|
- "Dockerfile.ci"
|
||||||
- ".gitea/workflows/build-ci-image.yaml"
|
- ".gitea/workflows/build-ci-image.yaml"
|
||||||
@@ -36,4 +38,4 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.max-richter.dev/${{ gitea.repository }}-ci:latest
|
git.max-richter.dev/${{ gitea.repository }}-ci:latest
|
||||||
git.max-richter.dev/${{ gitea.repository }}-ci:${{ github.sha }}
|
git.max-richter.dev/${{ gitea.repository }}-ci:${{ gitea.sha }}
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ on:
|
|||||||
branches: ["*"]
|
branches: ["*"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PNPM_CACHE_FOLDER: /.pnpm-store
|
PNPM_CACHE_FOLDER: .pnpm-store
|
||||||
CARGO_HOME: /.cargo
|
CARGO_HOME: .cargo
|
||||||
CARGO_TARGET_DIR: target
|
CARGO_TARGET_DIR: target
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user