Update .github/workflows/docker.yaml

This commit is contained in:
Zakary Timson 2024-02-06 13:57:15 +00:00
parent 9056c7c862
commit 00e0c34685

View File

@ -47,7 +47,7 @@ jobs:
uses: ztimson/actions/clone@develop
with:
url: ${{inputs.repository}}
- name: Get Version Number
run: [[ -f package.json ]] && echo "VERSION=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV
@ -67,7 +67,7 @@ jobs:
pass: ${{inputs.pass}}
name: ${{inputs.name}}
tag: ${{inputs.tag}}
- name: Push as ${{env.VERSION}}
uses: ztimson/actions/docker/push@develop
if: ${{env.VERSION}}