Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add synapse version as Docker container label #15972

Merged
merged 7 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
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
8 changes: 7 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:

- name: Inspect builder
run: docker buildx inspect

- name: Extract version from pyproject.toml
run: |
echo "SYNAPSE_VERSION=$(grep "^version" pyproject.toml | sed -E 's/version\s*=\s*["]([^"]*)["]/\1/')" >> $GITHUB_ENV
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved

- name: Log in to DockerHub
uses: docker/login-action@v2
Expand Down Expand Up @@ -61,7 +65,9 @@ jobs:
uses: docker/build-push-action@v4
with:
push: true
labels: "gitsha1=${{ github.sha }}"
labels: |
gitsha1=${{ github.sha }}
org.opencontainers.image.version=${{ env.SYNAPSE_VERSION }}
tags: "${{ steps.set-tag.outputs.tags }}"
file: "docker/Dockerfile"
platforms: linux/amd64,linux/arm64
Expand Down
1 change: 1 addition & 0 deletions changelog.d/15972.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adds `org.opencontainers.image.version` to Synape's Docker container. Contributed by Mo Balaa
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved