Skip to content

Commit

Permalink
Internal job registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrandes authored Sep 19, 2024
1 parent 0c57938 commit f141d28
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 #

0 comments on commit f141d28

Please sign in to comment.