v1.2.22 #117
Workflow file for this run
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
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/cli:latest asyncapi/cli:${{ steps.version.outputs.value }} | |
docker push asyncapi/cli:${{ steps.version.outputs.value }} | |
docker push asyncapi/cli:latest | |
- name : Sync README.md and Description to Docker Hub | |
uses: actions/checkout@master | |
- uses: meeDamian/sync-readme@v1.0.6 | |
with: | |
user: ${{secrets.DOCKER_USERNAME}} | |
pass: ${{ secrets.DOCKER_PASSWORD }} | |
slug: asyncapi/cli | |
description: CLI to work with your AsyncAPI files |