Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

Updated Docker image build workflow and metadata

ylber-gashid44ddbffa396
diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml
index c1b97008..d195002a 100644
--- a/.github/workflows/publish-image.yml
+++ b/.github/workflows/publish-image.yml
@@ -25,13 +25,10 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Extract metadata (tags, labels) for Docker
- id: meta
- uses: docker/metadata-action@v5
- with:
- images: |
- ${{ env.REGISTRY }}/${{ env.SERVER_IMAGE_NAME }}
+
+ - name: Get the version
+ id: get_version
+ run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Build and push Neuron server image
uses: docker/build-push-action@v5
@@ -41,5 +38,7 @@ jobs:
push: true
tags: |
${{ env.REGISTRY }}/${{ env.SERVER_IMAGE_NAME }}:latest
- ${{ env.REGISTRY }}/${{ env.SERVER_IMAGE_NAME }}:${{ steps.meta.outputs.version }}
- labels: ${{ steps.meta.outputs.labels }}
\ No newline at end of file
+ ${{ env.REGISTRY }}/${{ env.SERVER_IMAGE_NAME }}:${{ steps.get_version.outputs.VERSION }}
+ labels: |
+ org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
+ org.opencontainers.image.revision=${{ github.sha }}
\ No newline at end of file