Skip to content

Commit

Permalink
ci: update release workflow (#352)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
princerajpoot20 and derberg authored Oct 25, 2023
1 parent 555a25a commit 6075a82
Show file tree
Hide file tree
Showing 3 changed files with 10,695 additions and 18,472 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-docker.yml
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
Loading

0 comments on commit 6075a82

Please sign in to comment.