-
Notifications
You must be signed in to change notification settings - Fork 145
46 lines (43 loc) · 1.95 KB
/
mac_tarball_notarization.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Sign Mac OS artifacts
on:
workflow_dispatch:
inputs:
proxy_version:
description: 'proxy version. Example: 11.1.0'
required: true
default: "0.0"
release_type:
description: 'Release type. Example: "proxy-GA" / "proxt-snapshot"'
required: true
default: "proxy-test"
jobs:
sign_proxy_mac_artifact:
# environment with secrets as env vars on wavefront-proxy repo
environment: macos_tarball_notarization
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
APP_SPECIFIC_PW: ${{ secrets.APP_SPECIFIC_PW }}
CERTIFICATE_OSX_P12: ${{ secrets.CERTIFICATE_OSX_P12 }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
ESO_DEV_ACCOUNT: ${{ secrets.ESO_DEV_ACCOUNT }}
USERNAME: ${{ secrets.USERNAME }}
WAVEFRONT_TEAM_CERT_P12: ${{ secrets.WAVEFRONT_TEAM_CERT_P12 }}
WAVEFRONT_TEAM_CERT_PASSWORD: ${{ secrets.WAVEFRONT_TEAM_CERT_PASSWORD }}
WF_DEV_ACCOUNT: ${{ secrets.WF_DEV_ACCOUNT }}
runs-on: macos-latest
steps:
- name: "${{ github.event.inputs.proxy_version }}-${{ github.event.inputs.release_type }}-checkout_proxy_code"
uses: actions/checkout@v3
- name: "${{ github.event.inputs.proxy_version }}-${{ github.event.inputs.release_type }}-before_install"
run: |
set -x
ls -la; pwd; pip3 install awscli; chmod +x ./macos_proxy_notarization/create_credentials.sh; ./macos_proxy_notarization/create_credentials.sh; cat ~/.aws/credentials;
set +x
- name: "${{ github.event.inputs.proxy_version }}-${{ github.event.inputs.release_type }}-notarize"
run: |
set -x
chmod +x ./macos_proxy_notarization/proxy_notarization.sh; ./macos_proxy_notarization/proxy_notarization.sh 'wfproxy-${{ github.event.inputs.proxy_version }}.tar.gz'
set +x
sleep 60