Add items needed to create Docker image
This commit is contained in:

committed by
JonnyWong16

parent
89248ad46a
commit
f572943a7b
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 }}
|
Reference in New Issue
Block a user