Update .github/workflows/docker.yaml
This commit is contained in:
parent
9056c7c862
commit
00e0c34685
4
.github/workflows/docker.yaml
vendored
4
.github/workflows/docker.yaml
vendored
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user