Skip to content

Copy images to dockerhub nightly #14

Copy images to dockerhub nightly

Copy images to dockerhub nightly #14

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@v3
- 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