From 35df44ca516a5da1861c0ab10f182de147c6b260 Mon Sep 17 00:00:00 2001 From: Maxim Grischenko Date: Thu, 16 May 2024 10:00:55 +0200 Subject: [PATCH] release workflow fixes --- .github/workflows/push-with-v-tag.yml | 2 ++ .github/workflows/release-scripts.yml | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-with-v-tag.yml b/.github/workflows/push-with-v-tag.yml index e5f60f03..f1cdac09 100644 --- a/.github/workflows/push-with-v-tag.yml +++ b/.github/workflows/push-with-v-tag.yml @@ -40,3 +40,5 @@ jobs: STS_SECRET_SERVER_DOCKER_IMAGE_NAME: adorsys/sts-secret-server STS_KEYCLOAK_ADAPTER_DOCKER_IMAGE_NAME: adorsys/keycloak-sts-adapter TAG: ${{ env.TAG }} + DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASSWORD }} diff --git a/.github/workflows/release-scripts.yml b/.github/workflows/release-scripts.yml index aa741f8e..0af8980a 100644 --- a/.github/workflows/release-scripts.yml +++ b/.github/workflows/release-scripts.yml @@ -27,8 +27,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} run: | NEXT_VERSION="$(echo '${{ inputs.version }}' | perl -pe 's{^(([0-9]\.)+)?([0-9]+)$}{$1 . ($3 + 1)}e')" - git config --global user.name "${GITHUB_ACTOR}" - git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config --global user.name "release-scripts" + git config --global user.email "release-scripts@users.noreply.github.com" ./release-scripts/release.sh -v $VERSION $NEXT_VERSION echo $(git log -5 --oneline) git push --atomic origin master develop --follow-tags # all or nothing