From 91777b9ddc1ed8920dd025a4da73d23dda005811 Mon Sep 17 00:00:00 2001 From: Aleksei Bibus Date: Sat, 21 Feb 2026 22:57:50 +1000 Subject: [PATCH] build(compose): Update compose version to 5.0.2 ISSUE: 39 --- .github/workflows/build.yml | 46 ++++++++++++++++++------------------- build.ps1 | 5 ++-- build_in_docker.sh | 13 ++++++++--- source/pkg_build.sh | 9 -------- 4 files changed, 34 insertions(+), 39 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1aa72f0..ba28b2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ # .github/workflows/build.yml # CI/CD pipeline for Compose Manager plugin -# +# # This workflow automates the release process: # - Builds TXZ package using Docker (Slackware) # - Calculates MD5 for integrity verification @@ -16,22 +16,21 @@ name: Build & Release Plugin on: push: tags: - - 'v20[0-9][0-9].[0-9][0-9].[0-9][0-9]*' + - "v20[0-9][0-9].[0-9][0-9].[0-9][0-9]*" workflow_dispatch: inputs: version: - description: 'Version to build (e.g., 2026.02.01) - leave empty for test build' + description: "Version to build (e.g., 2026.02.01) - leave empty for test build" required: false - default: '' + default: "" permissions: contents: write env: PLUGIN_NAME: compose.manager - COMPOSE_VERSION: '2.40.3' - COMPOSE_SWITCH_VERSION: '1.0.5' - ACE_VERSION: '1.4.14' + COMPOSE_VERSION: "5.0.2" + ACE_VERSION: "1.4.14" jobs: build: @@ -39,7 +38,7 @@ jobs: outputs: version: ${{ steps.version.outputs.VERSION }} md5: ${{ steps.hash.outputs.MD5 }} - + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -65,23 +64,22 @@ jobs: - name: Build TXZ package in Docker run: | VERSION="${{ steps.version.outputs.VERSION }}" - + # Set executable permissions chmod +x ./build_in_docker.sh chmod +x ./source/pkg_build.sh - + # Build using the Slackware Docker container docker run --rm --tmpfs /tmp \ -v $PWD/archive:/mnt/output:rw \ -v $PWD/source:/mnt/source:ro \ -e TZ="America/New_York" \ -e COMPOSE_VERSION=${{ env.COMPOSE_VERSION }} \ - -e COMPOSE_SWITCH_VERSION=${{ env.COMPOSE_SWITCH_VERSION }} \ -e ACE_VERSION=${{ env.ACE_VERSION }} \ -e OUTPUT_FOLDER="/mnt/output" \ -e PKG_VERSION="${VERSION}" \ vbatts/slackware:latest /mnt/source/pkg_build.sh - + # Verify package was created ls -la ./archive/ if [[ ! -f "./archive/${{ env.PLUGIN_NAME }}-package-${VERSION}.txz" ]]; then @@ -94,7 +92,7 @@ jobs: run: | VERSION="${{ steps.version.outputs.VERSION }}" PACKAGE="./archive/${{ env.PLUGIN_NAME }}-package-${VERSION}.txz" - + MD5=$(md5sum "$PACKAGE" | cut -d' ' -f1) echo "MD5=${MD5}" >> $GITHUB_OUTPUT echo "Package MD5: ${MD5}" @@ -112,7 +110,7 @@ jobs: needs: build runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/v') - + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -130,28 +128,28 @@ jobs: id: notes run: | VERSION="${{ needs.build.outputs.version }}" - + # Read component versions from release_info if [[ -f artifacts/release_info ]]; then COMPONENTS=$(cat artifacts/release_info) else COMPONENTS="Compose v${{ env.COMPOSE_VERSION }}" fi - + # Create release body cat > release_body.md << EOF ## Compose Manager v${VERSION} - + ### Installation - + **Via Plugin Manager:** \`\`\` https://raw.githubusercontent.com/${{ github.repository }}/main/${{ env.PLUGIN_NAME }}.plg \`\`\` - + ### Package Details - **MD5:** \`${{ needs.build.outputs.md5 }}\` - + ### Components ${COMPONENTS} EOF @@ -173,20 +171,20 @@ jobs: run: | VERSION="${{ needs.build.outputs.version }}" MD5="${{ needs.build.outputs.md5 }}" - + # Configure git git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - + # Update version and MD5 in PLG sed -i \ -e "s|> $OUTPUT_FOLDER/release_info -echo "Compose Switch v${COMPOSE_SWITCH_VERSION}" >> $OUTPUT_FOLDER/release_info echo "Ace v${ACE_VERSION}" >> $OUTPUT_FOLDER/release_info echo "" >> $OUTPUT_FOLDER/release_info echo "MD5: $(echo $MD5 | head -n1 | awk '{print $1;}')" >> $OUTPUT_FOLDER/release_info