From cb6b10aafbb0b7ae544eb1ad3382ae23f2e79ddd Mon Sep 17 00:00:00 2001 From: Dave Berenbaum Date: Thu, 16 Nov 2023 19:43:05 -0500 Subject: [PATCH] updates vars and secrets in ci (#277) * updates vars and secrets in ci * bump dvc version in requirements for tokens (#276) --------- Co-authored-by: Tibor Mach <56956998+tibor-mach@users.noreply.github.com> --- .../code/.github/workflows/deploy-model-sagemaker.yml | 1 + .../code/.github/workflows/dvc-studio.yml | 4 ++-- example-get-started-experiments/code/requirements.txt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example-get-started-experiments/code/.github/workflows/deploy-model-sagemaker.yml b/example-get-started-experiments/code/.github/workflows/deploy-model-sagemaker.yml index 9272b8b..c7f252e 100644 --- a/example-get-started-experiments/code/.github/workflows/deploy-model-sagemaker.yml +++ b/example-get-started-experiments/code/.github/workflows/deploy-model-sagemaker.yml @@ -26,6 +26,7 @@ jobs: deploy-model: needs: parse if: "${{ needs.parse.outputs.event == 'assignment' }}" + environment: cloud runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/example-get-started-experiments/code/.github/workflows/dvc-studio.yml b/example-get-started-experiments/code/.github/workflows/dvc-studio.yml index ed7f82f..3fe6fe1 100644 --- a/example-get-started-experiments/code/.github/workflows/dvc-studio.yml +++ b/example-get-started-experiments/code/.github/workflows/dvc-studio.yml @@ -109,7 +109,7 @@ jobs: - name: Train env: REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - STUDIO_TOKEN: ${{ secrets.STUDIO_TOKEN }} + DVC_STUDIO_TOKEN: ${{ secrets.DVC_STUDIO_TOKEN }} DVCLIVE_LOGLEVEL: DEBUG run: | cml ci --fetch-depth 0 @@ -119,7 +119,7 @@ jobs: - name: Workflow Dispatch Sharing if: github.event_name == 'workflow_dispatch' env: - STUDIO_TOKEN: ${{ secrets.STUDIO_TOKEN }} + DVC_STUDIO_TOKEN: ${{ secrets.DVC_STUDIO_TOKEN }} run: | dvc exp push origin -r push_remote diff --git a/example-get-started-experiments/code/requirements.txt b/example-get-started-experiments/code/requirements.txt index d6bfd62..db3fb58 100644 --- a/example-get-started-experiments/code/requirements.txt +++ b/example-get-started-experiments/code/requirements.txt @@ -1,4 +1,4 @@ -dvc[s3]>=3.22.1 +dvc[s3]>=3.29.0 dvclive>=3.0.1 fastai python-box