mirror of
https://codeberg.org/JasterV/docker.git
synced 2026-04-26 18:10:02 +00:00
[release-plz-update-pr] Release new tag
This commit is contained in:
parent
c16f5ff28d
commit
f03e2140e1
3 changed files with 9 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ steps:
|
|||
image: plugins/kaniko
|
||||
settings:
|
||||
repo: jasterv/release-plz-update-pr
|
||||
tags: 0.3,latest
|
||||
tags: 0.3.156,0.3,latest
|
||||
username:
|
||||
from_secret: DOCKERHUB_USERNAME
|
||||
password:
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
FROM jasterv/release-plz:0.3
|
||||
|
||||
COPY release-plz/update-pr.sh /usr/local/bin/release-plz-update-pr
|
||||
COPY release-plz/update-pr.sh /usr/local/bin/update-pr
|
||||
|
||||
RUN chmod +x /usr/local/bin/release-plz-update-pr
|
||||
RUN chmod +x /usr/local/bin/update-pr
|
||||
|
||||
# Entrypoint is required for Woodpecker plugins
|
||||
ENTRYPOINT ["/usr/local/bin/release-plz-update-pr"]
|
||||
ENTRYPOINT ["/usr/local/bin/update-pr"]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ BOT_NAME="${PLUGIN_BOT_NAME:-"release-plz-bot"}"
|
|||
BOT_EMAIL="${PLUGIN_BOT_EMAIL:-"bot@codeberg.org"}"
|
||||
COMMIT_MESSAGE="${PLUGIN_COMMIT_MESSAGE:-"chore: release-plz update"}"
|
||||
PR_TITLE="${PLUGIN_PR_TITLE:-"chore: release-plz update"}"
|
||||
CARGO_PATH="${PLUGIN_CARGO_PATH:-"~/woodpecker/.cargo"}"
|
||||
|
||||
|
||||
# Use Woodpecker CI built-in variables
|
||||
REPO_FULL_NAME="${CI_REPO}" # e.g., "username/repo"
|
||||
|
|
@ -24,11 +26,13 @@ fi
|
|||
# --- 3. Run release-plz update ---
|
||||
echo "--- Running release-plz update ---"
|
||||
|
||||
export CARGO_PATH="${CARGO_PATH}"
|
||||
|
||||
ls -R
|
||||
|
||||
pwd
|
||||
|
||||
release-plz update --verbose --manifest-path=./Cargo.toml
|
||||
release-plz update --verbose --manifest-path="$(pwd)/Cargo.toml"
|
||||
|
||||
# Check if any files were changed (Cargo.toml, CHANGELOG.md, etc.)
|
||||
if [ -z "$(git status --porcelain)" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue