Copy images to dockerhub nightly #437
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Copy images to dockerhub nightly | |
on: | |
schedule: | |
# 9am PST (16:00 UTC). | |
- cron: "0 16 * * *" | |
permissions: | |
contents: read | |
id-token: write #required for GCP Workload Identity federation | |
actions: write #required for workflow cancellation via check-aptos-core | |
jobs: | |
check-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: aptos-labs/aptos-core/.github/actions/check-aptos-core@main | |
with: | |
cancel-workflow: ${{ github.event_name == 'schedule' }} # Cancel the workflow if it is scheduled on a fork | |
copy-images-to-dockerhub: | |
needs: check-repo | |
if: github.repository == 'aptos-labs/aptos-core' | |
uses: ./.github/workflows/copy-images-to-dockerhub.yaml | |
with: | |
image_tag_prefix: nightly | |
secrets: inherit |