Skip to content

Commit

Permalink
fixing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guipleite committed Mar 31, 2021
1 parent 729bfca commit 99787a8
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions .github/workflows/deploy_on_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,32 @@ on:
- 'published'

jobs:
runs-on:
- 'ubuntu-latest'

container: docker://dvcorg/cml-py3:latest

steps:
- uses: actions/checkout@v2
- name: 'Deploy/Update on new release'
shell: bash

env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CRED_SECRET: ${{ secrets.IBM_CREDENTIALS_PASS }}

run: |
# Install requirements
pip install -r requirements.txt
# Pull data & run-cache from S3 and reproduce pipeline
dvc pull --run-cache
dvc repro
# Decrypt credentials file
gpg --quiet --batch --yes --decrypt --passphrase="$CRED_SECRET" --output credentials.yaml credentials.yaml.gpg
# Check if there is a deployment already, if positive update it, otherwise deploys it for the first time
./src/scripts/Scripts/git_release_pipeline.sh
run:
runs-on: [ubuntu-latest]
container: docker://dvcorg/cml-py3:latest
steps:
- uses: actions/checkout@v2
- name: 'Deploy/Update on new release'
shell: bash

env:
repo_token: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CRED_SECRET: ${{ secrets.IBM_CREDENTIALS_PASS }}

run: |
# Install requirements
pip install -r requirements.txt
# Pull data & run-cache from S3 and reproduce pipeline
dvc pull --run-cache
dvc repro
# Decrypt credentials file
gpg --quiet --batch --yes --decrypt --passphrase="$CRED_SECRET" --output credentials.yaml credentials.yaml.gpg
# Check if there is a deployment already, if positive update it, otherwise deploys it for the first time
./src/scripts/Scripts/git_release_pipeline.sh

2 comments on commit 99787a8

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics

Path Metric Old New Change

Plots

ROC Curve

Precision and Recall Curve

CML watermark

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics

Path Metric Old New Change

Plots

ROC Curve

Precision and Recall Curve

CML watermark

Please sign in to comment.