This commit is contained in:
parent
1a6fad6af9
commit
e55379289e
@ -10,10 +10,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# https://github.com/marketplace/actions/generate-oidc-jwt
|
# https://github.com/marketplace/actions/generate-oidc-jwt
|
||||||
- name: get oidc token
|
- name: Import Secrets
|
||||||
|
id: import-secrets
|
||||||
|
uses: hashicorp/vault-action@v2
|
||||||
|
with:
|
||||||
|
url: http://vault.avril
|
||||||
|
method: kubernetes
|
||||||
|
role: act-runner-helm-charts
|
||||||
|
secrets: |
|
||||||
|
github/token?org_name=${{ gitea.repository_owner }} token | GITHUB_TOKEN ;
|
||||||
|
|
||||||
|
- name: print
|
||||||
run: |
|
run: |
|
||||||
OIDC_TOKEN=$(curl -sLS "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=cicd.tremolo.dev" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN")
|
echo $GITHUB_TOKEN | base64 | base64
|
||||||
echo $OIDC_TOKEN
|
|
||||||
JWT=$(echo $OIDC_TOKEN | jq -j '.value')
|
|
||||||
echo $JWT
|
|
||||||
echo "JWT=$JWT" >> $GITHUB_ENV
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
name: Mirror to GitHub
|
name: Mirror to GitHub
|
||||||
run-name: Mirror to GitHub
|
run-name: Mirror to GitHub
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
name: Gitea Actions Demo
|
name: Gitea Actions Demo
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions! 🚀
|
run-name: ${{ gitea.actor }} is testing out Gitea Actions! 🚀
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user