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

Commit

Permalink
Add synapse version as Docker container label (#15972)
Browse files Browse the repository at this point in the history
Co-authored-by: Mo Balaa <balaa@fractalnetworks.co>
  • Loading branch information
thebalaa and thebalaa authored Jul 26, 2023
1 parent 6dc019d commit 96529c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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
- 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 @@
Add `org.opencontainers.image.version` labels to Docker containers [published by Matrix.org](https://hub.docker.com/r/matrixdotorg/synapse). Contributed by Mo Balaa.

0 comments on commit 96529c4

Please sign in to comment.