ci: add docker image build and push on develop
This commit is contained in:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -3,7 +3,7 @@ name: Overseerr CI
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- "*"
|
- '*'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
@@ -23,3 +23,16 @@ jobs:
|
|||||||
run: yarn lint
|
run: yarn lint
|
||||||
- name: build
|
- name: build
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
build_and_push:
|
||||||
|
name: Build and push Docker image to Docker Hub
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Build and push to Docker Hub
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
repository: sctx/overseerr
|
||||||
|
tags: latest
|
||||||
|
|||||||
Reference in New Issue
Block a user