Skip to content

prod-202402-01

prod-202402-01 #91

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
build_release:
runs-on: ubuntu-latest
steps:
- name: Install Kerberos
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y krb5-user
cat << \EOF > krb5.conf
${{secrets.KRB5CONF}}
EOF
grep rdns krb5.conf
sudo mv -f krb5.conf /etc/krb5.conf
- name: Trigger release in jenkins
run: |
echo ${{github.event.release.tag_name}} | grep -e "prod-20[0-9][0-9][0-1][0-9]-[0-9][0-9]"
echo ${{secrets.PASS}} | kinit ${{secrets.PRINCIPAL}}
curl -X POST -k --negotiate -u : ${{secrets.API_URL}} -H 'Content-Type: application/x-www-form-urlencoded' -d 'ALIDPG_TAG=${{github.event.release.tag_name}}'
klist
kdestroy