Skip to content
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

Fix release bot docker tag #3199

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ jobs:
# this means the release contains a new docker image (thus a new client)
if: contains(github.event.release.body, 'litentry/litentry-parachain:v')
steps:
- name: Set env
run: |
DOCKER_TAG=$(echo ${{ env.RELEASE_TAG }} | cut -d'-' -f1 | sed 's/p/v/')
echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_ENV

- name: Post discord message
env:
DISCORD_WEBHOOK: ${{ secrets.RELEASE_BOT_DISCORD_WEBHOOK }}
Expand All @@ -23,7 +18,7 @@ jobs:
args: |
Hi @everyone,
🚀 A new client release has been built: https://github.com/litentry/litentry-parachain/releases/tag/${{ github.event.release.tag_name }}
✨ Please update the client using the docker image litentry/litentry-parachain:$DOCKER_TAG
✨ Please update the client using the docker image litentry/litentry-parachain:${{ github.event.release.tag_name }}

- name: Update litentry image version
uses: "OnFinality-io/action-onf-release@v1"
Expand All @@ -38,5 +33,5 @@ jobs:
# Add a new image version to network spec
onf-sub-command: image
onf-action: add
image-version: $DOCKER_TAG
image-version: ${{ github.event.release.tag_name }}

Loading