-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: publish AsyncAPI Studio Docker image with additional version tag #1150
Changes from 3 commits
e9ab74d
d40aeeb
854e072
0ed5289
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@asyncapi/studio": minor | ||
--- | ||
|
||
Publish AsyncAPI Studio Docker image with additional version tag |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,18 @@ jobs: | |
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Get current Studio version | ||
id: get-studio-version | ||
uses: martinbeentjes/[email protected] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you change the version to a commit SHA based version? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Shurtu-gal Sure, done! |
||
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 | ||
tags: | | ||
asyncapi/studio:latest | ||
Comment on lines
+32
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Syntax as mentioned in https://github.com/docker/build-push-action?tab=readme-ov-file#inputs |
||
asyncapi/studio:${{ steps.get-studio-version.outputs.current-version}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://github.com/martinbeentjes/npm-get-version-action/tree/v1.3.1