Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- docker/debian/Dockerfile*
- test
workflow_dispatch:
inputs:
tag:
description: "Tag suffix to give the Docker images (e.g. v1.2.3)."
Copy link
Collaborator

@mathbunnyru mathbunnyru Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to verify we're not pushing the same tag again (completely defeating reproducible builds)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll add an extra step that performs the check in a bit.

Copy link
Collaborator

@Bronek Bronek Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we make use of git tags for this purpose ?

Although they are not guaranteed to never change, it is something that is rarely done and typically for a very good reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we've come back full circle then based on our offline conversation. I don't mind using Git tags as Docker tags, as that would simplify the pipelines (can use on: push: tags), so either way works for me.

In the meantime, I added a step that checks if the image exists via docker manifest inspect.

required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -18,6 +23,7 @@ defaults:

env:
CONTAINER_REGISTRY: ghcr.io
CONTAINER_TAG: ${{ github.event.inputs.tag || 'latest' }}
BUILDKIT_PROGRESS: plain
CONAN_VERSION: 2.19.1
GCOVR_VERSION: 8.3
Expand Down Expand Up @@ -137,7 +143,7 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.CONTAINER_TAG }}
type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bronek I did not add the tag here, but am not sufficiently familiar with this action. Should the tag be added here too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

labels: |
org.opencontainers.image.authors=For inquiries, please use https://${{ github.repository }}/issues
Expand Down Expand Up @@ -253,7 +259,7 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.CONTAINER_TAG }}
type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
- name: Create manifest list and push
working-directory: /tmp/digests
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/rhel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- docker/rhel/Dockerfile
- test
workflow_dispatch:
inputs:
tag:
description: "Tag suffix to give the Docker images (e.g. v1.2.3)."
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -18,6 +23,7 @@ defaults:

env:
CONTAINER_REGISTRY: ghcr.io
CONTAINER_TAG: ${{ github.event.inputs.tag || 'latest' }}
REDHAT_REGISTRY: registry.redhat.io
BUILDKIT_PROGRESS: plain
CONAN_VERSION: 2.19.1
Expand Down Expand Up @@ -98,7 +104,7 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.CONTAINER_TAG }}
type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
labels: |
org.opencontainers.image.authors=For inquiries, please use https://${{ github.repository }}/issues
Expand Down Expand Up @@ -203,7 +209,7 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.CONTAINER_TAG }}
type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
- name: Create manifest list and push
working-directory: /tmp/digests
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/tools-rippled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- .github/workflows/tools-rippled.yml
- docker/tools-rippled/Dockerfile
workflow_dispatch:
inputs:
tag:
description: "Tag to give the Docker images (e.g. v1.2.3)."
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -17,6 +22,7 @@ defaults:

env:
CONTAINER_REGISTRY: ghcr.io
CONTAINER_TAG: ${{ github.event.inputs.tag || 'latest' }}
BUILDKIT_PROGRESS: plain
CMAKE_VERSION: 3.31.6
DOXYGEN_VERSION: 1.9.8+ds-2build5
Expand Down Expand Up @@ -70,8 +76,8 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ env.CONTAINER_TAG }}
type=sha,prefix=sha-
type=raw,value=latest
labels: |
org.opencontainers.image.authors=For inquiries, please use https://${{ github.repository }}/issues
org.opencontainers.image.documentation=https://${{ github.repository }}
Expand Down Expand Up @@ -155,8 +161,8 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ env.CONTAINER_TAG }}
type=sha,prefix=sha-
type=raw,value=latest
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- docker/ubuntu/Dockerfile
- test
workflow_dispatch:
inputs:
tag:
description: "Tag suffix to give the Docker images (e.g. v1.2.3)."
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -18,6 +23,7 @@ defaults:

env:
CONTAINER_REGISTRY: ghcr.io
CONTAINER_TAG: ${{ github.event.inputs.tag || 'latest' }}
BUILDKIT_PROGRESS: plain
CONAN_VERSION: 2.19.1
GCOVR_VERSION: 8.3
Expand Down Expand Up @@ -93,7 +99,7 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.CONTAINER_TAG }}
type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
labels: |
org.opencontainers.image.authors=For inquiries, please use https://${{ github.repository }}/issues
Expand Down Expand Up @@ -199,7 +205,7 @@ jobs:
with:
images: ${{ env.CONTAINER_IMAGE }}
tags: |
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}
type=raw,value=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-${{ env.CONTAINER_TAG }}
type=sha,prefix=${{ matrix.os.compiler_name }}-${{ matrix.os.compiler_version }}-sha-
- name: Create manifest list and push
working-directory: /tmp/digests
Expand Down
Loading