Update daily workflow to use built image for harvesting observation w… #3
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
on: | |
schedule: | |
- cron: "0 0 * * *" # Run at 9 AM in JST | |
push: | |
branches: | |
- main | |
jobs: | |
daily: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/build-push-action@v6 | |
id: build | |
with: | |
context: . | |
push: false | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Harvest the observation weather data | |
run: | | |
docker run --rm ${{ steps.build.outputs.imageid}} cargo run --bin harvest_observation_weather_data |