-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (36 loc) · 1.17 KB
/
manual.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Manual Trigger Docker Builds
on:
# manually trigger the workflow
workflow_dispatch:
inputs:
MAIN:
required: true
type: string
description: The github branch to build latest tag
default: 'main'
RELEASE:
required: true
type: string
description: The github release to build
default: 'None'
jobs:
Build-Main:
uses: Franky1/Tesseract-OCR-5-Docker/.github/workflows/docker.yml@main
if: ${{ github.event.inputs.MAIN != 'None' }}
with:
TAG: latest
BRANCH: ${{ github.event.inputs.MAIN }}
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
Build-Release:
uses: Franky1/Tesseract-OCR-5-Docker/.github/workflows/docker.yml@main
if: ${{ github.event.inputs.RELEASE != 'None' }}
with:
TAG: ${{ github.event.inputs.RELEASE }}
BRANCH: ${{ github.event.inputs.RELEASE }}
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}