55 - ' published'
66
77jobs :
8- runs-on :
9- - ' ubuntu-latest'
10-
11- container : docker://dvcorg/cml-py3:latest
12-
13- steps :
14- - uses : actions/checkout@v2
15- - name : ' Deploy/Update on new release'
16- shell : bash
17-
18- env :
19- repo_token : ${{ secrets.GITHUB_TOKEN }}
20- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
21- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
22- CRED_SECRET : ${{ secrets.IBM_CREDENTIALS_PASS }}
23-
24- run : |
25- # Install requirements
26- pip install -r requirements.txt
27-
28- # Pull data & run-cache from S3 and reproduce pipeline
29- dvc pull --run-cache
30- dvc repro
31-
32- # Decrypt credentials file
33- gpg --quiet --batch --yes --decrypt --passphrase="$CRED_SECRET" --output credentials.yaml credentials.yaml.gpg
34-
35- # Check if there is a deployment already, if positive update it, otherwise deploys it for the first time
36- ./src/scripts/Scripts/git_release_pipeline.sh
37-
38-
8+ run :
9+ runs-on : [ubuntu-latest]
10+ container : docker://dvcorg/cml-py3:latest
11+ steps :
12+ - uses : actions/checkout@v2
13+ - name : ' Deploy/Update on new release'
14+ shell : bash
15+
16+ env :
17+ repo_token : ${{ secrets.GITHUB_TOKEN }}
18+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
19+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
20+ CRED_SECRET : ${{ secrets.IBM_CREDENTIALS_PASS }}
21+
22+ run : |
23+ # Install requirements
24+ pip install -r requirements.txt
25+
26+ # Pull data & run-cache from S3 and reproduce pipeline
27+ dvc pull --run-cache
28+ dvc repro
29+
30+ # Decrypt credentials file
31+ gpg --quiet --batch --yes --decrypt --passphrase="$CRED_SECRET" --output credentials.yaml credentials.yaml.gpg
32+
33+ # Check if there is a deployment already, if positive update it, otherwise deploys it for the first time
34+ ./src/scripts/Scripts/git_release_pipeline.sh
35+
36+
0 commit comments