From f141d28d18a058da01292757438616cebfb428d7 Mon Sep 17 00:00:00 2001 From: "G.Grandes" Date: Thu, 19 Sep 2024 14:07:07 +0200 Subject: [PATCH] Internal job registry --- .github/workflows/docker.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d93a421..0f17e5d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,12 +15,11 @@ concurrency: group: ${{ github.repository }} cancel-in-progress: true -permissions: - contents: read - packages: write - jobs: call-shared-workflow: + permissions: + contents: read + packages: write uses: ggrandes/shared-workflows/.github/workflows/docker.yml@v1 with: dry_run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || false }} @@ -36,4 +35,24 @@ jobs: secrets: DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} + internal-registry: + permissions: + contents: write + runs-on: ubuntu-latest + needs: [call-shared-workflow] + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: 'internal' + - name: Update registry file + if: success() + run: | + set -ex + date -Is >> .control/registry.txt + git config user.email 'github-actions[bot]@users.noreply.github.com' + git config user.name 'github-actions[bot]' + git commit -a -m "update" + git push + # END #