Skip to content

Commit

Permalink
Add workflow for image building
Browse files Browse the repository at this point in the history
  • Loading branch information
anw90 committed Aug 20, 2024
1 parent 415d0ad commit 9d9a7ad
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Daily Image Building Script Execution

on:
workflow_dispatch:
schedule:
# Runs at 1:00 AM every day
- cron: '0 1 * * *'

jobs:
run-shell-script:
runs-on: self-hosted

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run shell script
run: cd docker && echo $OSS_ENDPOINT && 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 }}

0 comments on commit 9d9a7ad

Please sign in to comment.