chore(jans-pycloudlib)!: remove spanner support from pycloudlib (#10049) #188
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Images Janspycloud updater | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "jans-pycloudlib/**" | |
- "!**.md" | |
- "!jans-pycloudlib/jans/pycloudlib/version.py" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
pycloud-updater: | |
permissions: | |
contents: write # for Git to git push | |
if: github.actor != 'mo-auto' && github.repository == 'JanssenProject/jans' | |
runs-on: ubuntu-latest | |
env: | |
PR_DOCKER_BRANCH_NAME: update-jans-pycloudlib | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0 | |
with: | |
gpg_private_key: ${{ secrets.MOAUTO_GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.MOAUTO_GPG_PRIVATE_KEY_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- name: Configure Git | |
run: | | |
git config --global user.name "mo-auto" | |
git config --global user.email "[email protected]" | |
git config --global user.signingkey "${{ steps.import_gpg.outputs.keyid }}" | |
git checkout -b ${{ env.PR_DOCKER_BRANCH_NAME }} | |
echo "${{ secrets.MOAUTO_WORKFLOW_TOKEN }}" | gh auth login --with-token | |
- name: Update stable requirements in docker images | |
id: build_stable_reqs | |
run: | | |
dockerimages="auth-server casa certmanager config-api configurator fido2 keycloak-link link persistence-loader saml scim " | |
for image in $dockerimages; do | |
sed -i '/git+https/c\git+https://github.com/${{ github.repository }}@${{ github.sha }}#egg=jans-pycloudlib&subdirectory=jans-pycloudlib' ./docker-jans-$image/requirements.txt | |
done | |
- name: Configure Git | |
run: | | |
git add -A | |
git commit -S -s -m "chore(jans-pycloudlib): updated build" | |
git push origin ${{ env.PR_DOCKER_BRANCH_NAME }} | |
PR=$(gh pr create --assignee "moabu" --base "main" --body "Updated build date. Auto-generated." --label "enhancement,bot" --reviewer "moabu" --title "chore(Dockerfile): updated build dates" || echo "PR Branch is already open") |