Server baut das Image selbst aus dem Git-Tag, Adressen für schaarschmidt-holzbau.de
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
38
.github/workflows/release.yml
vendored
38
.github/workflows/release.yml
vendored
@@ -1,38 +0,0 @@
|
||||
# Freigabe: Versionsnummer als Tag setzen (z. B. v1.0.0). Daraus entsteht das Image
|
||||
# ghcr.io/<besitzer>/<repo>:1.0.0, das auf dem Server mit deploy/update.sh eingespielt wird.
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags: ["v*.*.*"]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- id: v
|
||||
run: |
|
||||
echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
||||
echo "image=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
build-args: APP_VERSION=${{ steps.v.outputs.version }}
|
||||
tags: ${{ steps.v.outputs.image }}:${{ steps.v.outputs.version }}
|
||||
- name: Release-Notiz aus CHANGELOG.md
|
||||
run: |
|
||||
awk -v v="${{ steps.v.outputs.version }}" '$0 ~ "^## " v {f=1; next} /^## /{f=0} f' CHANGELOG.md > notiz.md
|
||||
gh release create "$GITHUB_REF_NAME" --title "Version ${{ steps.v.outputs.version }}" --notes-file notiz.md
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
Reference in New Issue
Block a user