Repository navigation
ci: add docker image versioning and split triggering workflow files - #713
Closed
SystemsPurge wants to merge 1 commit into
Closed
SystemsPurge wants to merge 1 commit into
SystemsPurge wants to merge 1 commit into
Conversation
Signed-off-by: SystemsPurge <naktiyoussef@proton.me>
SystemsPurge
had a problem deploying
to
fork-pr
September 4, 2026 09:26 — with
GitHub Actions
Failure
|
|
|
||
| - name: Detect Docker image changes | ||
| id: paths | ||
| uses: dorny/paths-filter@v4 |
| ref: ${{ needs.setup.outputs.revision }} | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 |
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Build and Push Base Image to Local Registry | ||
| uses: docker/build-push-action@v6 |
| ref: ${{ needs.setup.outputs.revision }} | ||
|
|
||
| - name: Build images | ||
| uses: docker/build-push-action@v6 |
| steps: | ||
| - name: Log in to Docker Hub | ||
| if: contains(needs.setup.outputs.registries, 'docker.io') | ||
| uses: docker/login-action@v3 |
|
|
||
| - name: Log in to GitHub Container Registry (GHCR) | ||
| if: contains(needs.setup.outputs.registries, 'ghcr.io') | ||
| uses: docker/login-action@v3 |
| - name: Resolve metadata (docker.io) | ||
| id: meta-dockerhub | ||
| if: contains(needs.setup.outputs.registries, 'docker.io') | ||
| uses: docker/metadata-action@v5 |
| - name: Resolve legacy transition metadata (docker.io) | ||
| id: meta-dockerhub-legacy | ||
| if: contains(needs.setup.outputs.registries, 'docker.io') && needs.setup.outputs.version != '' && matrix.target.repo != 'dpsim' | ||
| uses: docker/metadata-action@v5 |
| - name: Resolve metadata (ghcr.io) | ||
| id: meta-ghcr | ||
| if: contains(needs.setup.outputs.registries, 'ghcr.io') | ||
| uses: docker/metadata-action@v5 |
| - name: Resolve legacy transition metadata (ghcr.io) | ||
| id: meta-ghcr-legacy | ||
| if: contains(needs.setup.outputs.registries, 'ghcr.io') && needs.setup.outputs.version != '' && matrix.target.repo != 'dpsim' | ||
| uses: docker/metadata-action@v5 |
This branch had an error being deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Draft for now, untill the following is discussed:
Actual context dependent triggering workflows, and what else they should trigger
Integration with release-please
Whether change detection is actually needed
Local registry is not possible, so the usage of a temporary registry ( and corresponding credentials ) are needed
This seeks to keep all dpsim docker image versions in sync and tag them properly with version
Transition to a proper image name/tag so that tags can properly be used ( instead of having sogno/dpsim:platform ), by also pushing images following what's currently being used, in case of a release.
Handle pushing to multiple registries ( ghcr and docker )