From e9ab74d416550d9548ab543923bb98615251c337 Mon Sep 17 00:00:00 2001 From: Florian Greinacher Date: Wed, 23 Oct 2024 09:37:03 +0200 Subject: [PATCH] ci: publish AsyncAPI Studio Docker image with additional version tag --- .changeset/brown-kangaroos-deliver.md | 5 +++++ .github/workflows/publish-docker-image.yml | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .changeset/brown-kangaroos-deliver.md diff --git a/.changeset/brown-kangaroos-deliver.md b/.changeset/brown-kangaroos-deliver.md new file mode 100644 index 000000000..b84f1ba87 --- /dev/null +++ b/.changeset/brown-kangaroos-deliver.md @@ -0,0 +1,5 @@ +--- +"@asyncapi/studio": minor +--- + +Publish AsyncAPI Studio Docker image with additional version tag diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 5933e25cb..07a7c7d60 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -17,10 +17,18 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Get current Studio version + id: get-studio-version + uses: martinbeentjes/npm-get-version-action@v1.3.1 + with: + path: apps/studio + - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . file: ./apps/studio/Dockerfile push: true - tags: asyncapi/studio:latest \ No newline at end of file + tags: | + asyncapi/studio:latest + asyncapi/studio:${{ steps.get-studio-version.outputs.current-version}}