Skip to content

Commit

Permalink
Add caching for Cargo dependencies and update AWS credentials path in…
Browse files Browse the repository at this point in the history
… daily workflow
  • Loading branch information
senkenn committed Dec 25, 2024
1 parent 274cabc commit b9f57f0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- uses: docker/setup-buildx-action@v3

- uses: docker/build-push-action@v6
Expand All @@ -25,8 +34,8 @@ jobs:

- name: Set AWS credentials to .env file
run: |
echo ${{ secrets.AWS_ACCESS_KEY_ID }} > .env
echo ${{ secrets.AWS_SECRET_ACCESS_KEY }} > .env
echo ${{ secrets.AWS_ACCESS_KEY_ID }} >> packages/cron_jobs/.env
echo ${{ secrets.AWS_SECRET_ACCESS_KEY }} >> packages/cron_jobs/.env
- name: Harvest the observation weather data
run: |
Expand Down

0 comments on commit b9f57f0

Please sign in to comment.