From 57ec4250c7ae40c368d7d57767d361d0737baae4 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 14 Dec 2023 16:49:54 +0000 Subject: [PATCH] Update .gitea/workflows/publish.yaml --- .gitea/workflows/publish.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 4bd112b..06329fb 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -2,6 +2,12 @@ name: Publish ApplicationRecord to Registry on: release: types: [published] + +env: + CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_CERCIO_USER_KEY }} + CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_CERCIO_BOND_ID }} + CERC_REGISTRY_APP_CRN: ${{ vars.CERC_REGISTRY_APP_CRN }} + jobs: cns_publish: runs-on: ubuntu-latest @@ -21,14 +27,6 @@ jobs: - name: "Install jq" run: apt -y update && apt -y install jq - name: "Publish Application Record" - env: - CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_CERCIO_USER_KEY }} - CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_CERCIO_BOND_ID }} - CERC_REGISTRY_APP_CRN: "crn://cerc-io/applications/test-progressive-web-app" run: scripts/publish-app-record.sh - name: "Request Deployment" - env: - CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_CERCIO_USER_KEY }} - CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_CERCIO_BOND_ID }} - CERC_REGISTRY_APP_CRN: "crn://cerc-io/applications/test-progressive-web-app" run: scripts/request-app-deployment.sh