81
81
- uses : actions/checkout@v2
82
82
83
83
- name : Check input requirements
84
- if : inputs.push_image && inputs.registry_url && inputs.registry_user && ! inputs.registry_pass
84
+ if : >-
85
+ fromJSON(inputs.push_image)
86
+ && ( ! inputs.registry_url
87
+ || ! inputs.registry_user
88
+ || ! inputs.registry_pass)
85
89
shell : bash
86
90
run : |
87
91
echo "::error ::'push_image' specified but missing 'registry_url', 'registry_user', or 'registry_pass'"
@@ -129,7 +133,7 @@ runs:
129
133
uses : docker/setup-buildx-action@v1
130
134
131
135
- name : Container Registry Login
132
- if : inputs.push_image
136
+ if : fromJSON( inputs.push_image)
133
137
uses : docker/login-action@v1
134
138
with :
135
139
registry : ${{ inputs.registry_url }}
@@ -139,7 +143,7 @@ runs:
139
143
- name : Build and push Docker images
140
144
141
145
with :
142
- push : ${{ inputs.push_image }}
146
+ push : ${{ fromJSon( inputs.push_image) }}
143
147
context : ${{ inputs.context }}
144
148
build-args : |
145
149
BASE_YUM_REPO=${{ inputs.osg_repo }}
@@ -150,7 +154,7 @@ runs:
150
154
cache-to : type=local,dest=/tmp/.buildx-cache,mode=max
151
155
152
156
- name : Cache Docker images
153
- if : inputs.cache_image
157
+ if : fromJSON( inputs.cache_image)
154
158
uses : actions/cache@v2
155
159
with :
156
160
path : /tmp/.buildx-cache
0 commit comments