Skip to content

Manual Push

Manual Push #6

Workflow file for this run

on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag'
required: true
name: Manual Push
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
push:
name: Push Docker image to container registry
runs-on: ubuntu-latest
steps:
- name: Log in to the Container registry
uses: docker/#-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: read-docker-image-identifiers
name: Read Docker Image Identifiers
run: echo ::set-env name=IMAGE_REPOSITORY::$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: $IMAGE_REPOSITORY/${{ env.IMAGE_NAME }}:${{ github.event.inputs.tag }}