mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 21:33:18 -07:00
Add items needed to create Docker image
This commit is contained in:
parent
89248ad46a
commit
f572943a7b
4 changed files with 74 additions and 0 deletions
17
.github/workflows/publishdocker-branch.yml
vendored
Normal file
17
.github/workflows/publishdocker-branch.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
name: Publish Docker Branch
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
env:
|
||||
VERSION: ${{ github.sha }}
|
||||
with:
|
||||
name: wreave/tautulli
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
dockerfile: Dockerfile
|
||||
buildargs: VERSION
|
22
.github/workflows/publishdocker-release.yml
vendored
Normal file
22
.github/workflows/publishdocker-release.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: Publish Docker Release
|
||||
on:
|
||||
release:
|
||||
types: [published, prereleased]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Set env
|
||||
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
- name: Publish to Registry
|
||||
uses: elgohr/Publish-Docker-Github-Action@master
|
||||
env:
|
||||
VERSION: ${{ github.sha }}
|
||||
with:
|
||||
name: wreave/tautulli
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
dockerfile: Dockerfile
|
||||
buildargs: VERSION
|
||||
tags: ${{ env.RELEASE_VERSION }}
|
Loading…
Add table
Add a link
Reference in a new issue