Update docker/action.yaml

This commit is contained in:
Zakary Timson 2023-07-28 16:49:30 +00:00
parent 5cf2c95549
commit 600aa1d35f

View File

@ -25,11 +25,11 @@ runs:
using: composite using: composite
steps: steps:
- uses: actions/checkout@v3
- name: Login to registry - name: Login to registry
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}}"
- uses: actions/checkout@v3
- 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")