🐛(CI) fix ci issue
- fix get secret in ci
This commit is contained in:
17
.github/workflows/docker-hub.yml
vendored
17
.github/workflows/docker-hub.yml
vendored
@@ -158,13 +158,24 @@ jobs:
|
|||||||
github.event_name != 'pull_request'
|
github.event_name != 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Checkout
|
uses: actions/create-github-app-token@v1
|
||||||
uses: actions/checkout@v4
|
id: app-token
|
||||||
|
with:
|
||||||
|
app-id: ${{ secrets.APP_ID }}
|
||||||
|
private-key: ${{ secrets.PRIVATE_KEY }}
|
||||||
|
owner: ${{ github.repository_owner }}
|
||||||
|
repositories: "impress,secrets"
|
||||||
|
-
|
||||||
|
name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
-
|
-
|
||||||
name: Load sops secrets
|
name: Load sops secrets
|
||||||
uses: rouja/actions-sops@main
|
uses: rouja/actions-sops@main
|
||||||
with:
|
with:
|
||||||
secret-file: .github/workflows/secrets.enc.env
|
secret-file: .github/workflows/secrets/numerique-gouv/impress/secrets.enc.env
|
||||||
age-key: ${{ secrets.SOPS_PRIVATE }}
|
age-key: ${{ secrets.SOPS_PRIVATE }}
|
||||||
-
|
-
|
||||||
name: Call argocd github webhook
|
name: Call argocd github webhook
|
||||||
|
|||||||
Reference in New Issue
Block a user