Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Dec 20, 2019
1 parent 38529d5 commit 3df1f57
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ jobs:
- name: Install Kerberos
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y krb5-user
sudo cat << \EOF > /etc/krb5.conf
cat << \EOF > krb5.conf
${{secrets.KRB5CONF}}
EOF
- 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}}
klist
echo ${{secrets.PASS}} | KRB5_CONFIG=krb5.conf kinit ${{secrets.PRINCIPAL}}
KRB5_CONFIG=krb5.config klist
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}}'
kdestroy
KRB5_CONFIG=krb5.config kdestroy

0 comments on commit 3df1f57

Please sign in to comment.