-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
152 changed files
with
8,033 additions
and
4,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
test: | ||
name: Lint & Test Build | ||
runs-on: ubuntu-20.04 | ||
container: node:12.18-alpine | ||
container: node:14.16-alpine | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -24,6 +24,7 @@ jobs: | |
run: yarn lint | ||
- name: build | ||
run: yarn build | ||
|
||
build_and_push: | ||
name: Build & Publish to Docker Hub | ||
needs: test | ||
|
@@ -59,6 +60,7 @@ jobs: | |
with: | ||
context: . | ||
file: ./Dockerfile | ||
platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
push: true | ||
build-args: | | ||
COMMIT_TAG=${{ github.sha }} | ||
|
@@ -68,16 +70,23 @@ 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 | ||
if: always() && github.event_name != 'pull_request' && !contains(github.event.head_commit.message, '[skip ci]') | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Get Build Job Status | ||
uses: technote-space/[email protected] | ||
|
||
uses: technote-space/[email protected] | ||
- name: Combine Job Status | ||
id: status | ||
run: | | ||
|
@@ -87,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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
test: | ||
name: Lint & Test Build | ||
runs-on: ubuntu-20.04 | ||
container: node:12.18-alpine | ||
container: node:14.16-alpine | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -31,9 +31,24 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 12 | ||
node-version: 14 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.CR_PAT }} | ||
- name: Install dependencies | ||
run: yarn | ||
- name: Release | ||
|
@@ -108,7 +123,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Get Build Job Status | ||
uses: technote-space/[email protected].2 | ||
uses: technote-space/[email protected].5 | ||
|
||
- name: Combine Job Status | ||
id: status | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Get Build Job Status | ||
uses: technote-space/[email protected].2 | ||
uses: technote-space/[email protected].5 | ||
|
||
- name: Combine Job Status | ||
id: status | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:12.18-alpine | ||
FROM node:14.16-alpine | ||
|
||
COPY . /app | ||
WORKDIR /app | ||
|
Oops, something went wrong.