forked from alisw/AliDPG
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 861 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Release
on:
release:
types: [published]
jobs:
build_release:
runs-on: ubuntu-18.04
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