mirror of
https://github.com/litruv/API-WebSocket-Bridge.git
synced 2026-07-24 02:36:03 +10:00
Update docker-push.yml
This commit is contained in:
8
.github/workflows/docker-push.yml
vendored
8
.github/workflows/docker-push.yml
vendored
@@ -3,7 +3,11 @@ name: Docker
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
workflow_dispatch: # Add manual trigger
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
image_tag:
|
||||
description: 'Enter the image tag'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -29,7 +33,7 @@ jobs:
|
||||
- name: Set up environment variables
|
||||
id: env
|
||||
run: |
|
||||
echo "IMAGE_TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
|
||||
echo "IMAGE_TAG=${{ github.event.release.tag_name || inputs.image_tag }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push Docker image to Docker Hub
|
||||
uses: docker/build-push-action@v2
|
||||
|
||||
Reference in New Issue
Block a user