Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 0 additions & 64 deletions .github/actions/prep/action.yml

This file was deleted.

116 changes: 0 additions & 116 deletions .github/actions/publish-web-app-serve/action.yml

This file was deleted.

26 changes: 25 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,30 @@ jobs:

- name: 🐳 Prepare Docker
id: prep
uses: ./.github/actions/prep
env:
REPO_NAME: ghcr.io/${{ github.repository }}
shell: bash
run: |
# If it's a pull request ref, fallback to 'pr-<number>' format
if [[ "$GITHUB_REF_NAME" == *"pull/"* ]]; then
PR_NUMBER=$(echo "$GITHUB_REF_NAME" | grep -oP 'pull/\K[0-9]+')
TAG="pr-${PR_NUMBER}"
else
TAG=$(echo "$GITHUB_REF_NAME" | \
sed 's|:|-|g' | \
tr '[:upper:]' '[:lower:]' | \
sed 's/[^a-z0-9_.-]/-/g' | \
cut -c1-100 | \
sed 's/^[.-]*//' | \
sed 's/[-.]*$//')
fi

REPO_NAME=$(echo $REPO_NAME | tr '[:upper:]' '[:lower:]')

# Docker
echo "docker_image_name=${REPO_NAME}" >> $GITHUB_OUTPUT
echo "docker_image_tag=${TAG}" >> $GITHUB_OUTPUT
echo "docker_image=${REPO_NAME}:${TAG}" >> $GITHUB_OUTPUT

- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
Expand Down Expand Up @@ -43,6 +66,7 @@ jobs:
context: .
builder: ${{ steps.buildx.outputs.name }}
file: Dockerfile
target: web-app-serve
push: false
load: true
provenance: false # XXX: Without this we have untagged images in ghcr.io
Expand Down
91 changes: 0 additions & 91 deletions .github/workflows/helm-publish.yml

This file was deleted.

36 changes: 1 addition & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,17 @@ jobs:
name: CI
uses: ./.github/workflows/docker-publish.yml

helm-publish:
name: CI
uses: ./.github/workflows/helm-publish.yml

generate-release:
name: Generate release
runs-on: ubuntu-22.04
needs:
- helm-publish
- docker-publish

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare
id: prep
uses: ./.github/actions/prep

- name: Set the release version
id: release
shell: bash
Expand All @@ -59,36 +50,11 @@ jobs:
config: cliff.toml
args: -vv --latest --no-exec --github-repo ${{ github.repository }} --strip all

- name: Changelog content pre-processing
id: changelog-pre-process
env:
HELM_REPO_URL: "${{ steps.prep.outputs.helm_oci_repo }}"
HELM_CHART: "${{ steps.prep.outputs.helm_chart }}"
HELM_TARGET_REVISION: "${{ steps.prep.outputs.helm_target_revision }}"
DOCKER_IMAGE: "${{ steps.prep.outputs.docker_image }}"
shell: bash
run: |
EXTENDEND_CHANGELOG=/tmp/extendend_changelog.md
echo "# Changelog" >> $EXTENDEND_CHANGELOG
echo "" >> $EXTENDEND_CHANGELOG

echo "> [!Important]" >> $EXTENDEND_CHANGELOG
echo "> Helm Repo URL: **$HELM_REPO_URL**" >> $EXTENDEND_CHANGELOG
echo "> Helm Chart: **$HELM_CHART**" >> $EXTENDEND_CHANGELOG
echo "> Helm Target Revision: **$HELM_TARGET_REVISION**" >> $EXTENDEND_CHANGELOG
echo "> Docker image: **$DOCKER_IMAGE**" >> $EXTENDEND_CHANGELOG

echo "${{ steps.git-cliff.outputs.content }}" >> $EXTENDEND_CHANGELOG

echo "extended_changelog_path=${EXTENDEND_CHANGELOG}" >> $GITHUB_OUTPUT
cat $EXTENDEND_CHANGELOG >> $GITHUB_STEP_SUMMARY

- name: Create Github Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "v${{ steps.release.outputs.release_version }}"
prerelease: ${{ steps.release.outputs.is_prerelease }}
body: ${{ steps.changelog-pre-process.outputs.extended_changelog }}
body_path: ${{ steps.changelog-pre-process.outputs.extended_changelog_path }}
body: ${{ steps.git-cliff.outputs.content }}
Loading