Update docker/action.yaml

This commit is contained in:
Zakary Timson 2023-07-28 17:47:16 +00:00
parent 600aa1d35f
commit 1aefbb864d

View File

@ -31,7 +31,7 @@ runs:
run: echo "${{inputs.registry_pass}}" | docker login -u "${{inputs.registry_user}}" --password-stdin "${{inputs.registry}}" run: echo "${{inputs.registry_pass}}" | docker login -u "${{inputs.registry_user}}" --password-stdin "${{inputs.registry}}"
- name: Create tag - name: Create tag
run: TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g") run: TAG=$([ -n "${{inputs.tag}}" ] && echo "${{inputs.tag}}" || [ "$GITHUB_REF" == "refs/heads/develop" ] && echo "latest" || echo "$GITHUB_REF_NAME" | sed -E "s/[_/]/-/g") >> $GITHUB_ENV
- name: Build image - name: Build image
run: docker build --no-cache -t "${{inputs.image}}:$TAG" . run: docker build --no-cache -t "${{inputs.image}}:$TAG" .