-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Lukasz Gornicki <[email protected]>
- Loading branch information
1 parent
555a25a
commit 6075a82
Showing
3 changed files
with
10,695 additions
and
18,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Release Docker Image | ||
on: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
|
||
publish-docker: | ||
name: Generating Docker | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Get version without v character | ||
id: version | ||
run: | | ||
VERSION=${{github.event.release.tag_name}} | ||
VERSION_WITHOUT_V=${VERSION:1} | ||
echo "value=${VERSION_WITHOUT_V}" >> $GITHUB_OUTPUT | ||
- name: Release to Docker | ||
run: | | ||
echo ${{secrets.DOCKER_PASSWORD}} | docker login -u ${{secrets.DOCKER_USERNAME}} --password-stdin | ||
npm run docker:build | ||
docker tag asyncapi/server-api:latest asyncapi/server-api:${{ steps.version.outputs.value }} | ||
docker push asyncapi/server-api:${{ steps.version.outputs.value }} | ||
docker push asyncapi/server-api:latest | ||
- uses: meeDamian/sync-readme@82715041300710d9be7c726c9d6c683b70451087 #version 1.0.6 https://github.com/meeDamian/sync-readme/releases/tag/v1.0.6 | ||
with: | ||
user: ${{secrets.DOCKER_USERNAME}} | ||
pass: ${{ secrets.DOCKER_PASSWORD }} | ||
slug: asyncapi/server-api | ||
description: Server API providing official AsyncAPI tools |
Oops, something went wrong.