|
|
|
@ -24,6 +24,7 @@ jobs:
|
|
|
|
|
run: yarn lint
|
|
|
|
|
- name: build
|
|
|
|
|
run: yarn build
|
|
|
|
|
|
|
|
|
|
build_and_push:
|
|
|
|
|
name: Build & Publish to Docker Hub
|
|
|
|
|
needs: test
|
|
|
|
@ -69,7 +70,15 @@ jobs:
|
|
|
|
|
ghcr.io/sct/overseerr:develop
|
|
|
|
|
ghcr.io/sct/overseerr:${{ github.sha }}
|
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
|
|
|
|
|
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
|
|
|
|
- # Temporary fix
|
|
|
|
|
# https://github.com/docker/build-push-action/issues/252
|
|
|
|
|
# https://github.com/moby/buildkit/issues/1896
|
|
|
|
|
name: Move cache
|
|
|
|
|
run: |
|
|
|
|
|
rm -rf /tmp/.buildx-cache
|
|
|
|
|
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
|
|
|
|
|
|
|
|
|
discord:
|
|
|
|
|
name: Send Discord Notification
|
|
|
|
|
needs: build_and_push
|
|
|
|
@ -78,7 +87,6 @@ jobs:
|
|
|
|
|
steps:
|
|
|
|
|
- name: Get Build Job Status
|
|
|
|
|
uses: technote-space/workflow-conclusion-action@v2.1.2
|
|
|
|
|
|
|
|
|
|
- name: Combine Job Status
|
|
|
|
|
id: status
|
|
|
|
|
run: |
|
|
|
|
@ -88,7 +96,6 @@ jobs:
|
|
|
|
|
else
|
|
|
|
|
echo ::set-output name=status::$WORKFLOW_CONCLUSION
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
- name: Post Status to Discord
|
|
|
|
|
uses: sarisia/actions-status-discord@v1
|
|
|
|
|
with:
|
|
|
|
|