From d342caec40a8bb1a8edd647047dae5addff72f83 Mon Sep 17 00:00:00 2001 From: Jim Schaff Date: Tue, 30 Apr 2024 10:07:57 -0400 Subject: [PATCH 1/2] fix typo in vcell-fluxcd action invocation to deploy k8s --- .github/workflows/site_deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/site_deploy.yml b/.github/workflows/site_deploy.yml index 65d186c279..79484bc936 100644 --- a/.github/workflows/site_deploy.yml +++ b/.github/workflows/site_deploy.yml @@ -235,7 +235,7 @@ jobs: run: | git_sha=$(git rev-parse --short "$GITHUB_SHA") echo '{"ref": "main","inputs":{"overlay": "'$BRANCH'","tag":"'${{github.ref_name}}'"}}' >body - curl -X POST 'https://api.github.com/repos/virtualcell/vcell-fluxcd/actions/workflows/deploy.yml/dispatches' \ + curl -X POST 'https://api.github.com/repos/virtualcell/vcell-fluxcd/actions/workflows/deploy.yaml/dispatches' \ -H 'Authorization: Bearer ${{ secrets.GHCR_TOKEN }}' \ -H 'Content-Type: application/json' \ --data "@body" From d613f381dd50ec866e33da62aa5a0fc87141d3f5 Mon Sep 17 00:00:00 2001 From: Jim Schaff Date: Tue, 30 Apr 2024 13:24:59 -0400 Subject: [PATCH 2/2] fix credentials in github runner --- .github/workflows/site_deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/site_deploy.yml b/.github/workflows/site_deploy.yml index 79484bc936..d1bb00d942 100644 --- a/.github/workflows/site_deploy.yml +++ b/.github/workflows/site_deploy.yml @@ -229,8 +229,8 @@ jobs: - name: Call webhook to deploy to kubernetes cluster (overlay 'stage') if: ${{ github.event.inputs.deployment_type == 'kubernetes' }} env: - GHCR_USERNAME: "${{ secrets.GHCR_USERNAME }}" - GHCR_TOKEN: "${{ secrets.GHCR_TOKEN }}" + GHCR_USERNAME: "${{ secrets.ACTION_USER }}" + GHCR_TOKEN: "${{ secrets.ACTION_TOKEN }}" BRANCH: "stage" run: | git_sha=$(git rev-parse --short "$GITHUB_SHA")