From c6c7cd72e4bbf33b0782a14b7c8ff9eef57643da Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 22 Mar 2024 15:04:43 +0100 Subject: [PATCH] test secrets --- .github/workflows/build.yml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21a42b2..a798eb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,26 +19,24 @@ jobs: echo "GITEA_Actor: ${{gitea.actor}}" echo "GITEA_Repository: ${{gitea.repository}}" echo "GITEA_REF_NAME: ${{gitea.ref_name}}" - echo "GITEA_Action: ${{gitea.action}}" - echo "GITEA_Action_ref: ${{gitea.action_ref}}" # KANIKO - # - name: Kaniko build and push - # uses: aevea/action-kaniko@master - # with: - # build_file: Dockerfile - # registry: git.coopgo.io - # username: ${{gitea.actor}} - # password: ${{env.PASSWORD}} - # image: ${{gitea.repository}} - # tag: test - # cache: true - # cache_registry: git.coopgo.io/coopgo-platform/mobility-accounts/cache - # extra-args: | - # ACCESS_TOKEN_USR=${{gitea.actor}} - # ACCESS_TOKEN_PWD=${{env.PASSWORD}} - # env: - # PASSWORD: 6744954b4a3a43422e62e8d110f90de527ce094d + - name: Kaniko build and push + uses: aevea/action-kaniko@master + with: + build_file: Dockerfile + registry: git.coopgo.io + username: ${{gitea.actor}} + password: ${{env.PASSWORD}} + image: ${{gitea.repository}} + tag: ${{gitea.ref_name}} + cache: true + cache_registry: git.coopgo.io/${{gitea.repository}}/cache + extra-args: | + ACCESS_TOKEN_USR=${{gitea.actor}} + ACCESS_TOKEN_PWD=${{env.PASSWORD}} + env: + PASSWORD: 6744954b4a3a43422e62e8d110f90de527ce094d