Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Jun 18, 2024
1 parent 4aa0ae5 commit f690973
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function publish {
return 0
fi


if [[ ! ("$CI_BRANCH" == "develop" || "$CI_BRANCH_TAG" =~ ^v.*$ ) ]] ; then
return 0
fi
Expand All @@ -52,6 +53,8 @@ function secrets {
mkdir .secrets
if [[ "$CI_PULL_REQUEST" == "false" ]] ; then
echo "$SONATYPE_CREDENTIALS_FILE" > "$SONATYPE_SECRET"
openssl aes-256-cbc -K "$OPENSSL_KEY" -iv "$OPENSSL_IV" -in secrets.tar.enc -out secrets.tar -d
tar xvf secrets.tar
fi
}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
access_token: ${{ secrets.TOKEN_BITWARDEN_SM }}
secrets: |
994f97a2-97a4-4fe1-806a-b1930104435f > SONATYPE_CREDENTIALS_FILE
749f4227-9f11-4ceb-9121-b1930110c3a9 > OPENSSL_KEY
a2fe5b5b-5f3f-47f8-961c-b1930110cea7 > OPENSSL_IV
- name: Publish
run: |
bash .build.sh secrets publish
Expand Down
Binary file modified secrets.tar.enc
Binary file not shown.

0 comments on commit f690973

Please sign in to comment.