Compare commits

...

2 Commits

Author SHA1 Message Date
c2e4633b6c
fix(cicd): bad exit codes
Some checks failed
Build / build (push) Failing after 20s
2023-11-21 20:36:43 +01:00
9e9f6d37d2
fix(cicd): wrong command placement
All checks were successful
Build / build (push) Successful in 19s
2023-11-21 20:34:41 +01:00

@ -13,22 +13,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Extract Version Tag
- name: Check is image already exists
id: extract-version
run: |
git clone https://github.com/ONLYOFFICE/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
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
shell: bash
if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/${docker_tag}" > /dev/null; then exit 1; else exit 0; fi shell: bash
- name: test
- name: Remove temporary files
if: steps.check-existing.conclusion == 'success'
id: test
run: echo ${{ steps.extract-version.outputs.docker_tag }}
id: remove-temp
run: |
echo ${{ steps.extract-version.outputs.docker_tag }}
rm -rf DocumentServer
shell: bash
- name: Install Docker