Daily Image Building Script Execution #116
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: Daily Image Building Script Execution | |
on: | |
workflow_dispatch: | |
schedule: | |
# Runs daily at 1:00 AM, Beijing time. | |
- cron: '0 17 * * *' # This is UTC time | |
jobs: | |
run-shell-script: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run shell script | |
run: cd docker && bash ./build_docker.sh | |
env: | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
OSS_AK_ID: ${{ secrets.OSS_AK_ID }} | |
OSS_AK_SECRET: ${{ secrets.OSS_AK_SECRET }} | |
OSS_ENDPOINT: ${{ secrets.OSS_ENDPOINT }} |