Skip to content

Build

Build #7

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs:
tmmVersion:
description: 'Version of tmm.jar'
required: true
default: '5.0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build image
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
build-args: |
TMM_VERSION=${{ github.event.inputs.tmmVersion }}
tags: dzhuang/tinymediamanager:v${{ github.event.inputs.tmmVersion }}
push: true