This commit is contained in:
parent
b104e22c7a
commit
9a134fc2ba
@ -13,29 +13,22 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Check is image already exists
|
- name: Extract Version Tag
|
||||||
id: check-existing
|
id: extract-version
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/ONLYOFFICE/DocumentServer
|
git clone https://github.com/ONLYOFFICE/DocumentServer
|
||||||
cd DocumentServer
|
cd DocumentServer
|
||||||
docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-)
|
export 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
|
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
|
|
||||||
|
|
||||||
- name: Extract Version Tag
|
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
id: extract-version
|
|
||||||
# run: echo "docker_tag=$(git describe --tags --abbrev=0 | cut -d 'v' -f2-)" >> GITHUB_OUTPUT
|
|
||||||
run: echo "docker_tag='$(git describe --tags --abbrev=0 | cut -d \'v\' -f2-)'" >> GITHUB_OUTPUT
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Remove temporary files
|
|
||||||
if: steps.check-existing.conclusion == 'success'
|
|
||||||
id: remove-temp
|
|
||||||
run: |
|
|
||||||
echo ${{ steps.extract-version.outputs.docker_tag }}
|
|
||||||
rm -rf DocumentServer
|
rm -rf DocumentServer
|
||||||
|
echo "docker_tag=${docker_tag}" >> GITHUB_OUTPUT
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
if: steps.check-existing.conclusion == 'success'
|
||||||
|
id: test
|
||||||
|
run: echo ${{ steps.extract-version.outputs.docker_tag }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user