ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 41s
Gitea Actions Demo / docker (push) Failing after 9s

This commit is contained in:
Ivan Li 2023-05-22 01:00:16 +08:00
parent 3bbab92293
commit 6717bb5e2f

View File

@ -45,6 +45,15 @@ jobs:
path: ./target/release/network-monitor path: ./target/release/network-monitor
key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
- id: restore-executable-binary
name: Restore Executable Binary
uses: https://github.com/actions/cache/restore@v3
with:
path: ./target/release/network-monitor
key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
fail-on-cache-miss: true
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
@ -64,16 +73,12 @@ jobs:
uses: https://github.com/Maxyme/get-release-or-tag@v2 uses: https://github.com/Maxyme/get-release-or-tag@v2
- id: restore-executable-binary - id: restore-executable-binary
name: Cache Executable Binaries name: Restore Executable Binary
uses: https://github.com/actions/cache/restore@v3 uses: https://github.com/actions/cache/restore@v3
with: with:
path: ./target/release/network-monitor path: ./target/release/network-monitor
key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }}
fail-on-cache-miss: true
- if: ${{ steps.restore-executable-binary.outputs.cache-hit != 'true' }}
name: Check if binary not exists
run: echo "missing program"
continue-on-error: false
- name: Log in to the Container registry - name: Log in to the Container registry
uses: https://github.com/docker/login-action@v2 uses: https://github.com/docker/login-action@v2