-
Notifications
You must be signed in to change notification settings - Fork 1
feat: update images, their release, and optimized the builds for effi… #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e233cdd
feat: update images, their release, and optimized the builds for effi…
iamvikshan 9ed2482
Update images/ubuntu-bun/Dockerfile
iamvikshan 44627b6
Update images/ubuntu-bun-node/Dockerfile
iamvikshan df6c984
Update .github/workflows/sync.yml
iamvikshan 34b3e45
fix: apply CodeRabbit auto-fixes
coderabbitai[bot] d86c96c
Update images/ubuntu-bun-node/Dockerfile
iamvikshan 7ce7e6b
Update images/ubuntu-bun-node/Dockerfile
iamvikshan 8dc476f
Update .github/workflows/releases.yml
iamvikshan 1c06927
Update images/bun/Dockerfile
iamvikshan 2cad72b
Update AGENTS.md
iamvikshan ab9c367
Update README.md
iamvikshan 4e6ded9
Update .github/workflows/releases.yml
iamvikshan f154f0d
Update images/bun/devcontainer.json
iamvikshan 429756a
feat: secure user permissions, automate documentation sync, and clean…
iamvikshan 13684f4
fixes
iamvikshan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| name: 'Finalize Release Notes' | ||
| description: 'Downloads image metadata, updates the README sizes, prepends the CHANGELOG, and creates a GitHub Release.' | ||
|
|
||
| inputs: | ||
| tag_name: | ||
| description: 'The tag for this release (e.g., v1.0.0)' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: Download Metadata Artifacts | ||
| uses: actions/download-artifact@v4.3.4 | ||
| with: | ||
| pattern: metadata-* | ||
| merge-multiple: true | ||
| path: metadata/ | ||
|
|
||
| - name: Build Notes, Update README & CHANGELOG | ||
| shell: bash | ||
| env: | ||
| NEW_TAG: ${{ inputs.tag_name }} | ||
| REPO: ${{ github.repository }} | ||
| OWNER: ${{ github.repository_owner }} | ||
|
iamvikshan marked this conversation as resolved.
|
||
| run: | | ||
| echo "## [$NEW_TAG] - $(date +'%Y-%m-%d')" > release_notes.md | ||
| echo "" >> release_notes.md | ||
| echo "All notable changes to this project are documented below. This release contains updates for the specific environments listed." >> release_notes.md | ||
| echo "" >> release_notes.md | ||
|
|
||
| echo "### Released Environments" >> release_notes.md | ||
| echo "" >> release_notes.md | ||
| echo "| Container | Version | Date | Registry Links |" >> release_notes.md | ||
| echo "|---|---|---|---|" >> release_notes.md | ||
|
|
||
| # 1. Update README sizes and build changelog table rows | ||
| for size_file in metadata/*.size; do | ||
| if [ -f "$size_file" ]; then | ||
| IMG_NAME=$(basename "$size_file" .size) | ||
| SIZE_VAL=$(cat "$size_file") | ||
|
|
||
| # Add row to release notes | ||
| echo "| $IMG_NAME | $NEW_TAG | $(date +'%Y-%m-%d') | [GHCR](https://ghcr.io/$REPO/$IMG_NAME:latest) · [Docker Hub](https://hub.docker.com/r/$OWNER/$IMG_NAME) |" >> release_notes.md | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Smart replace the size in the README table inline | ||
| sed -i -E "s/\| \*\*$IMG_NAME\*\* \| [^|]+ \|/\| **$IMG_NAME** \| $SIZE_VAL \|/" README.md | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated
|
||
| fi | ||
| done | ||
|
|
||
| echo "" >> release_notes.md | ||
| echo "### Environment Tool Versions" >> release_notes.md | ||
| echo "" >> release_notes.md | ||
|
|
||
| # 2. Append Ubuntu Tool Versions (Read directly from Skopeo-extracted OCI labels) | ||
| echo "#### Ubuntu-Based Environments" >> release_notes.md | ||
| echo '```properties' >> release_notes.md | ||
| UBUNTU_FALLBACK=$(find metadata -name "ubuntu*.versions" | head -n 1) | ||
| if [ -f "metadata/ubuntu-bun-node.versions" ]; then | ||
| cat metadata/ubuntu-bun-node.versions >> release_notes.md | ||
| elif [ -n "$UBUNTU_FALLBACK" ]; then | ||
| cat "$UBUNTU_FALLBACK" >> release_notes.md | ||
| else | ||
| echo "# No Ubuntu tools updated." >> release_notes.md | ||
| fi | ||
| echo '```' >> release_notes.md | ||
| echo "" >> release_notes.md | ||
|
|
||
| # 3. Append Alpine Tool Versions (strictly targeting files without 'ubuntu' in the name) | ||
| echo "#### Alpine-Based Environments" >> release_notes.md | ||
| echo '```properties' >> release_notes.md | ||
| ALPINE_FALLBACK=$(find metadata -name "*.versions" ! -name "*ubuntu*" | head -n 1) | ||
| if [ -f "metadata/bun-node.versions" ]; then | ||
| cat metadata/bun-node.versions >> release_notes.md | ||
| elif [ -n "$ALPINE_FALLBACK" ]; then | ||
| cat "$ALPINE_FALLBACK" >> release_notes.md | ||
| else | ||
| echo "# No Alpine tools updated." >> release_notes.md | ||
| fi | ||
| echo '```' >> release_notes.md | ||
| echo "" >> release_notes.md | ||
|
|
||
| # 4. Prepend to CHANGELOG.md safely | ||
| cat release_notes.md CHANGELOG.md > temp_changelog.md && mv temp_changelog.md CHANGELOG.md | ||
|
|
||
| - name: Commit CHANGELOG & README | ||
| uses: stefanzweifel/git-auto-commit-action@v7.1.0 | ||
| with: | ||
| commit_message: 'docs: update CHANGELOG and README for ${{ inputs.tag_name }} [skip ci]' | ||
| file_pattern: 'CHANGELOG.md README.md' | ||
|
|
||
| - name: Publish GitHub Release | ||
| uses: softprops/action-gh-release@v2.0.8 | ||
| with: | ||
| tag_name: ${{ inputs.tag_name }} | ||
| name: Release ${{ inputs.tag_name }} | ||
| body_path: release_notes.md | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.