mirror of
https://github.com/tedkulp/vidgrab
synced 2026-03-05 13:20:27 -05:00
Add back the github workflows
This commit is contained in:
43
.github/workflows/docker-image.yml
vendored
Normal file
43
.github/workflows/docker-image.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Docker Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
-
|
||||
name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: tedkulp/vidgrab:latest
|
||||
cache-from: type=registry,ref=tedkulp/vidgrab:latest
|
||||
cache-to: type=inline
|
||||
-
|
||||
name: git checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: push README to Dockerhub
|
||||
uses: christian-korneck/update-container-description-action@v1
|
||||
env:
|
||||
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
DOCKER_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
with:
|
||||
destination_container_repo: tedkulp/vidgrab
|
||||
provider: dockerhub
|
||||
short_description: 'Simple web interface to download videos with youtube-dl and store them on your server'
|
||||
readme_file: 'README.md'
|
||||
Reference in New Issue
Block a user