From c8d1cb1faafa5ea329dd44f72c9d15609bb4393d Mon Sep 17 00:00:00 2001 From: Toshiaki Maki Date: Tue, 9 Apr 2024 00:19:47 +0900 Subject: [PATCH] Fix --- .github/workflows/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e3f86b4..ac7ddd0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,7 +20,7 @@ jobs: secrets: | kv/data/cicd/github api_token | GITHUB_API_TOKEN - name: Docker Login - run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.GITHUB_API_TOKEN }} + run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${GITHUB_API_TOKEN} - name: Install Pack uses: buildpacks/github-actions/setup-pack@v5.5.4 - name: Install GraalVM @@ -58,4 +58,8 @@ jobs: cat < pack/Procfile web: ./ssr-react-spring-boot-graalvm-js EOF - pack build ghcr.io/${{ github.repository_owner }}/ssr-react-spring-boot-graalvm-js --gid 1000 --publish --builder paketobuildpacks/builder-jammy-tiny --path pack \ No newline at end of file + pack build ghcr.io/${{ github.repository_owner }}/ssr-react-spring-boot-graalvm-js --gid 1000 --publish --builder paketobuildpacks/builder-jammy-tiny --path pack + - name: Revoke token + if: always() + run: | + curl -X POST -s -H "X-Vault-Token: ${VAULT_TOKEN}" ${{ secrets.VAULT_ADDR }}/v1/auth/token/revoke-self \ No newline at end of file