Skip to content

ci: add docker image versioning and split triggering workflow files - #713

Closed
SystemsPurge wants to merge 1 commit into
sogno-platform:masterfrom
SystemsPurge:docker-image-versioning
Closed

SystemsPurge wants to merge 1 commit into
sogno-platform:masterfrom
SystemsPurge:docker-image-versioning

Conversation

@SystemsPurge

Copy link
Copy Markdown
Contributor

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 )

Signed-off-by: SystemsPurge <naktiyoussef@proton.me>
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown


- 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
@SystemsPurge
SystemsPurge deleted the docker-image-versioning branch September 30, 2026 09:23

This branch had an error being deployed

1 failed deployment
fork-pr — 2bec9800 Deployed Sep 4, 2026 by SystemsPurge via Resolve revision and images #287
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants