fix(cicd): wrong command placement
All checks were successful
Build / build (push) Successful in 19s
All checks were successful
Build / build (push) Successful in 19s
This commit is contained in:
parent
9a134fc2ba
commit
9e9f6d37d2
1 changed files with 8 additions and 7 deletions
|
@ -13,22 +13,23 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Extract Version Tag
|
- name: Check is image already exists
|
||||||
id: extract-version
|
id: extract-version
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/ONLYOFFICE/DocumentServer
|
git clone https://github.com/ONLYOFFICE/DocumentServer
|
||||||
cd DocumentServer
|
cd DocumentServer
|
||||||
export docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-)
|
docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-)
|
||||||
echo $docker_tag
|
echo $docker_tag
|
||||||
if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/${docker_tag}" > /dev/null; then exit 1; fi
|
|
||||||
rm -rf DocumentServer
|
|
||||||
echo "docker_tag=${docker_tag}" >> GITHUB_OUTPUT
|
echo "docker_tag=${docker_tag}" >> GITHUB_OUTPUT
|
||||||
|
if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/${docker_tag}" > /dev/null; then exit 1; fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: test
|
- name: Remove temporary files
|
||||||
if: steps.check-existing.conclusion == 'success'
|
if: steps.check-existing.conclusion == 'success'
|
||||||
id: test
|
id: remove-temp
|
||||||
run: echo ${{ steps.extract-version.outputs.docker_tag }}
|
run: |
|
||||||
|
echo ${{ steps.extract-version.outputs.docker_tag }}
|
||||||
|
rm -rf DocumentServer
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
|
|
Loading…
Reference in a new issue