diff --git a/.github/workflows/rigel-ci.yml b/.github/workflows/rigel-ci.yml index e797cc2b4e..6e7ad30986 100644 --- a/.github/workflows/rigel-ci.yml +++ b/.github/workflows/rigel-ci.yml @@ -45,3 +45,21 @@ jobs: # in-tree regression tests here against the CLI just built. - name: Fork regression tests run: PATH="$PWD/result/bin:$PATH" devenv-run-tests run tests --only container-homedir-shape + + # Pushes the devenv closure to the private forks Attic cache, from the + # reusable workflow in RigelBuild/.github. Push events on rigel-release only: + # a pull_request never reaches this job, so fork PRs never get the secrets. + # Secrets are not yet provisioned (RIG-10216, RIG-10509); until they exist, + # the reusable job skips with a notice and does not fail this caller. + attic-push: + if: github.event_name == 'push' + needs: [CI] + uses: RigelBuild/.github/.github/workflows/attic-push.yml@main + with: + attrs: | + .#devenv + cache: forks + secrets: + TS_OAUTH_CLIENT_ID: ${{ secrets.TS_OAUTH_CLIENT_ID }} + TS_OAUTH_SECRET: ${{ secrets.TS_OAUTH_SECRET }} + ATTIC_PUSH_TOKEN: ${{ secrets.ATTIC_PUSH_TOKEN }}