summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-07-27 13:47:48 +0100
committerGitHub <noreply@github.com>2023-07-27 13:47:48 +0100
commitf9f3e89354915d6f3b002355c96ac74f37cc85b9 (patch)
tree473aa7020a8c3cbccd5a8ae8fbb8882d649b0f86
parentRemove support for legacy application service paths (#15964) (diff)
downloadsynapse-f9f3e89354915d6f3b002355c96ac74f37cc85b9.tar.xz
Attempt to fix labelling in docker workflow (#16009)
-rw-r--r--.github/workflows/docker.yml8
-rw-r--r--changelog.d/16009.docker1
2 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index cf98a6a86f..8a69dc4986 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -28,8 +28,14 @@ jobs:
 
       - name: Inspect builder
         run: docker buildx inspect
-      
+
+      - name: Checkout repository
+        uses: actions/checkout@v3
+
       - name: Extract version from pyproject.toml
+        # Note: explicitly requesting bash will mean bash is invoked with `-eo pipefail`, see
+        # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
+        shell: bash
         run: |
           echo "SYNAPSE_VERSION=$(grep "^version" pyproject.toml | sed -E 's/version\s*=\s*["]([^"]*)["]/\1/')" >> $GITHUB_ENV
 
diff --git a/changelog.d/16009.docker b/changelog.d/16009.docker
new file mode 100644
index 0000000000..7fd9707deb
--- /dev/null
+++ b/changelog.d/16009.docker
@@ -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.