Skip to content

Tag

Tag #5

Workflow file for this run

name: Tag
on:
workflow_dispatch:
inputs:
toBeTagAsLatestV5:
description: 'The image tag which will be tag as latest-v5'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Pull and push image
run: |
docker pull dzhuang/tinymediamanager:${{ github.event.inputs.toBeTagAsLatestV5 }}
docker tag dzhuang/tinymediamanager:${{ github.event.inputs.toBeTagAsLatestV5 }} ${{ secrets.DOCKERHUB_USERNAME }}/tinymediamanager:latest-v5
docker push dzhuang/tinymediamanager:latest-v5