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
|
uses: ztimson/actions/clone@develop
|
||||||
with:
|
with:
|
||||||
url: ${{inputs.repository}}
|
url: ${{inputs.repository}}
|
||||||
|
|
||||||
- name: Get Version Number
|
- name: Get Version Number
|
||||||
run: [[ -f package.json ]] && echo "VERSION=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')" >> $GITHUB_ENV
|
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}}
|
pass: ${{inputs.pass}}
|
||||||
name: ${{inputs.name}}
|
name: ${{inputs.name}}
|
||||||
tag: ${{inputs.tag}}
|
tag: ${{inputs.tag}}
|
||||||
|
|
||||||
- name: Push as ${{env.VERSION}}
|
- name: Push as ${{env.VERSION}}
|
||||||
uses: ztimson/actions/docker/push@develop
|
uses: ztimson/actions/docker/push@develop
|
||||||
if: ${{env.VERSION}}
|
if: ${{env.VERSION}}
|
||||||
|
Loading…
Reference in New Issue
Block a user