diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 4bd112b..311296b 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -2,6 +2,10 @@ 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: ${{ env.CICD_REGISTRY_APP_CRN }} jobs: cns_publish: runs-on: ubuntu-latest @@ -21,14 +25,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 + run: scripts/request-app-deployment.sh \ No newline at end of file