Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
fix: fixed CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Schlegel <[email protected]>
  • Loading branch information
siredmar committed Apr 21, 2023
1 parent fb40172 commit 21fb7de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
14 changes: 1 addition & 13 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "sha256sum build/vault/plugins/vault-plugin-secrets-nats > build/vault/plugins/vault-plugin-secrets-nats.sha256"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i \"s#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:.*#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:${nextRelease.version}#g\" README.md"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "export SHA256SUM=$(cat build/vault/plugins/vault-plugin-secrets-nats.sha256) && sed -i \"s#sha256: .*#sha256: ${SHA256SUM}#g\" README.md"
"prepareCmd": "sh ./ci/semantic-release-patch-readme.sh ${nextRelease.version}"
}
],
[
Expand Down
7 changes: 7 additions & 0 deletions ci/semantic-release-patch-readme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
NEXTVERSION=$1
sha256sum build/vault/plugins/vault-plugin-secrets-nats > build/vault/plugins/vault-plugin-secrets-nats.sha256
export SHA256SUM=$(cat build/vault/plugins/vault-plugin-secrets-nats.sha256 | cut -d ' ' -f1)
sed -i "s#sha256: .*#sha256: ${SHA256SUM}#g" README.md
sed -i "s#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:.*#image: ghcr.io/edgefarm/vault-plugin-secrets-nats/vault-with-nats-secrets:${NEXTVERSION}#g" README.md

0 comments on commit 21fb7de

Please sign in to comment.