build and test pipelines #2
|
@ -19,16 +19,15 @@ jobs:
|
||||||
- name: Get access token from secret
|
- name: Get access token from secret
|
||||||
run: echo "${{ secrets.MASTODON_SECRET }}" > mastodon-data.toml
|
run: echo "${{ secrets.MASTODON_SECRET }}" > mastodon-data.toml
|
||||||
- name: Restore cached target
|
- name: Restore cached target
|
||||||
id: cache-primes-restore
|
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-primes
|
key: ${{ runner.os }}-target
|
||||||
|
- run: ls
|
||||||
- name: Run tests on docker
|
- 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
|
- name: Save target
|
||||||
id: cache-primes-save
|
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
|
|
@ -43,12 +43,11 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASS }}
|
password: ${{ secrets.DOCKER_PASS }}
|
||||||
- name: Restore cached target
|
- name: Restore cached target
|
||||||
id: cache-primes-restore
|
|
||||||
uses: actions/cache/restore@v3
|
uses: actions/cache/restore@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-primes
|
key: ${{ runner.os }}-target
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
|
@ -58,7 +57,6 @@ jobs:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
- name: Save target
|
- name: Save target
|
||||||
id: cache-primes-save
|
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
|
|
Loading…
Reference in New Issue