Compare commits

...

2 Commits

Author SHA1 Message Date
Alie ee5fa5268f reenable cache
Unit Tests with docker compose and cargo / unit-test (push) Successful in 1m50s Details
Build image / build (push) Has been cancelled Details
2024-02-22 17:33:07 +01:00
Alie bf7f731002 Revert "disable cache"
This reverts commit 35ac4f9aa8.
2024-02-22 17:32:49 +01:00
2 changed files with 26 additions and 2 deletions

View File

@ -18,5 +18,17 @@ jobs:
uses: actions/checkout@v3
- name: Get access token from secret
run: echo "${{ secrets.MASTODON_SECRET }}" > mastodon-data.toml
- name: Restore cached target
uses: actions/cache/restore@v3
with:
path: |
target/
key: ${{ runner.os }}-target
- name: Run tests on docker
run: docker compose down -v && docker compose run bot t
run: docker compose down -v && docker compose run bot t
- name: Save target
uses: actions/cache/save@v3
with:
path: |
target/
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }}

View File

@ -42,6 +42,12 @@ jobs:
registry: git.fai.st
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Restore cached target
uses: actions/cache/restore@v3
with:
path: |
target/
key: ${{ runner.os }}-target
- name: Build and push
uses: docker/build-push-action@v4
with:
@ -49,4 +55,10 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
- name: Save target
uses: actions/cache/save@v3
with:
path: |
target/
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }}