-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Release automation #111
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
lurtz
merged 8 commits into
eclipse-score:main
from
elektrobit-contrib:automated-releases
Apr 15, 2026
+160
−91
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5350286
slopped release code
lurtz 6540cfd
cleanup + move as much logic as possible into shell script
lurtz af331ce
simplify release.sh
lurtz 47c9055
more simplification
lurtz db74c4e
switch to semantic-release
lurtz 97d4423
working release workflow
lurtz 8c443be
add .releaserc
lurtz 708ad51
remove script
lurtz 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
| name: Validate & Publish DevContainer | ||
| description: This workflow is checking that for releases, updates do not break stuff and publishes the released container. | ||
| on: | ||
| push: | ||
| tags: | ||
| - v[0-9]+.[0-9]+.[0-9]+ | ||
| jobs: | ||
| build: | ||
| strategy: | ||
| matrix: | ||
| os: [arm64, amd64] | ||
| include: | ||
| - os: amd64 | ||
| name: DevContainer (amd64) | ||
| runner: ubuntu-24.04 | ||
| - os: arm64 | ||
| name: DevContainer (arm64) | ||
| runner: ubuntu-24.04-arm | ||
| name: ${{ matrix.name }} | ||
| runs-on: ${{ matrix.runner }} | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| id-token: write | ||
| steps: | ||
| - uses: eclipse-score/more-disk-space@v1 | ||
| - name: Checkout (GitHub) | ||
| uses: actions/checkout@v6 | ||
| - name: Login to GitHub Container Registry | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| # Use .devcontainer from THIS repo for building and testing | ||
| - name: Check, Build, Test, Publish | ||
| uses: devcontainers/ci@v0.3 | ||
| with: | ||
| # The .devcontainer is never published as pre-built container. | ||
| # We want to only use it for building and testing the actual container, which resides in src/s-core-devcontainer. | ||
| push: never | ||
| runCmd: | | ||
| set -eux pipefail | ||
|
|
||
| # Check | ||
| pre-commit run --show-diff-on-failure --color=always --all-files || exit 1 | ||
|
|
||
| # Create builder for multi-arch builds | ||
| ./scripts/create_builder.sh | ||
|
|
||
| # Build | ||
| ./scripts/build.sh --${{ matrix.os }} "${{ github.ref_name }}" "latest" | ||
|
|
||
| # Test | ||
| ./scripts/test.sh | ||
|
|
||
| # Publish | ||
| # We do not use the push feature of devcontainers/ci here, since that would push the wrong container. | ||
| # Instead, we use the publish script which pushes the correct container (residing in src/s-core-devcontainer). | ||
| # manually login to ghcr.io for publishing | ||
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
| ./scripts/publish.sh --${{ matrix.os }} "${{ github.ref_name }}" "latest" | ||
| merge: | ||
| name: Merge Labels | ||
| needs: [build] | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| id-token: write | ||
| steps: | ||
| - uses: eclipse-score/more-disk-space@v1 | ||
| - name: Checkout (GitHub) | ||
| uses: actions/checkout@v6 | ||
| - name: Login to GitHub Container Registry | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
| # Use .devcontainer from THIS repo for building and testing | ||
| - name: Merge | ||
| uses: devcontainers/ci@v0.3 | ||
| with: | ||
| # The .devcontainer is never published as pre-built container. | ||
| # We want to only use it for building and testing the actual container, which resides in src/s-core-devcontainer. | ||
| push: never | ||
| runCmd: | | ||
| set -eux pipefail | ||
|
|
||
| # Merge | ||
| # We do not use the push feature of devcontainers/ci here, since that would push the wrong container. | ||
| # Instead, we use the publish script which pushes the correct container (residing in src/s-core-devcontainer). | ||
| # manually login to ghcr.io for publishing | ||
| echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
| ./scripts/merge.sh "${{ github.ref_name }}" "latest" |
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 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,10 @@ | ||
| { | ||
| "branches": [ | ||
| "main" | ||
| ], | ||
| "plugins": [ | ||
| "@semantic-release/commit-analyzer", | ||
| "@semantic-release/release-notes-generator", | ||
| "@semantic-release/github" | ||
| ] | ||
| } |
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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file was only renamend. No content changes