From e9ab74d416550d9548ab543923bb98615251c337 Mon Sep 17 00:00:00 2001 From: Florian Greinacher Date: Wed, 23 Oct 2024 09:37:03 +0200 Subject: [PATCH 1/2] 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}} From 0ed5289e547f005899dd1810c7bb59716c3468be Mon Sep 17 00:00:00 2001 From: Florian Greinacher Date: Fri, 20 Dec 2024 14:08:38 +0100 Subject: [PATCH 2/2] ci: reference npm-get-version-action via commit hash --- .github/workflows/publish-docker-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 07a7c7d60..74615d41a 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -19,7 +19,7 @@ jobs: - name: Get current Studio version id: get-studio-version - uses: martinbeentjes/npm-get-version-action@v1.3.1 + uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b with: path: apps/studio