From d1bcdf22833ab7fc18da0e4a0f21a0bdf5c97af1 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Wed, 15 Nov 2023 14:07:59 -0500 Subject: [PATCH] Add storage account upload test --- .github/workflows/build.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ebd92c220e..0d8eb20aa5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -225,12 +225,23 @@ jobs: with: creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }} - # - name: Retrieve github PAT secrets - # id: retrieve-secret-pat - # uses: bitwarden/gh-actions/get-keyvault-secrets@main - # with: - # keyvault: "bitwarden-ci" - # secrets: "github-pat-bitwarden-devops-bot-repo-scope" + - name: Retrieve Storage Account secret + id: retrieve-secret + uses: bitwarden/gh-actions/get-keyvault-secrets@main + with: + keyvault: "bitwarden-ci" + secrets: "storage-account-dockerimagetest-conn-string" + + - name: TEST - Upload artifact + run: | + echo "Test file" > /tmp/test.txt + az storage blob upload \ + --file /tmp/test.txt \ + --container-name builds \ + --name build \ + --connection-string ${{ steps.retrieve-secret.outputs.storage-account-dockerimagetest-conn-string}} + + # - name: Generate image full name # id: image-name