Update docker/build/action.yaml

This commit is contained in:
Zakary Timson 2023-07-28 19:09:20 +00:00
parent 849aa8b464
commit ddc93d370b

View File

@ -20,5 +20,5 @@ runs:
- name: Build image - name: Build image
run: | run: |
TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g") TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g")
REG=$("${{inputs.registry}}" | sed -E "s%https?://%%gi")) REG=$("${{inputs.registry}}" | sed -E "s%https?://%%gi")
docker build --no-cache -t "$REG/${{inputs.image}}:$TAG" . docker build --no-cache -t "$REG/${{inputs.image}}:$TAG" .