-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.01 KB
/
manual_dispatch.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
# Candace Savonen May 2022
name: Manual build of docker image
on:
workflow_dispatch:
inputs:
directory:
description: 'File path on GitHub to Dockerfile? e.g. base_ottr'
required: true
type: string
tag:
description: 'Tag e.g. jhudsl/base_ottr:main'
required: true
type: string
dockerhubpush:
description: 'Push to Dockerhub? true or false'
required: false
default: 'false'
type: string
jobs:
build-it:
name: Docker Build - ${{ inputs.directory }}
runs-on: ubuntu-latest
steps:
- name: Docker build
if: ${{ steps.image_name.outputs.any_changed == 'true'}}
uses: ./.github/workflows/
with:
directory: ${{ inputs.directory }}
tag: ${{ inputs.tag }}
dockerhubpush: ${{ inputs.dockerhubpush }}
token: ${{ secrets.GH_PAT }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}