fix(ci/cd): Wrong variable name when checking for existing builds
This commit is contained in:
parent
7d2df472a6
commit
9b6eabced0
@ -34,14 +34,16 @@ jobs:
|
|||||||
- name: Extract tags and labels for Docker
|
- name: Extract tags and labels for Docker
|
||||||
id: meta
|
id: meta
|
||||||
run: |
|
run: |
|
||||||
echo "$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-)"
|
export VERSION="$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-)"
|
||||||
echo "tag=$(cd upstream && git describe --tags --abbrev=0 | cut -d 'v' -f2-)" >> $GITHUB_OUTPUT
|
echo "Version: ${VERSION}"
|
||||||
|
echo "tag=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Check if the image was already built
|
- name: Check if the image was already built
|
||||||
id: check-build-status
|
id: check-build-status
|
||||||
run: |
|
run: |
|
||||||
if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/$(echo ${{ steps.meta.outputs.tags }})" > /dev/null; then echo "Already existst" && exit 1; else echo "Desn't exist" && exit 0; fi
|
echo ${{ steps.meta.outputs.tag }}
|
||||||
|
if curl --silent -f -lSL "https://hub.docker.com/v2/repositories/jiriks74/onlyoffice-documentserver/tags/$(echo ${{ steps.meta.outputs.tag }})" > /dev/null; then echo "Already exists" && exit 1; else echo "Desn't exist" && exit 0; fi
|
||||||
|
|
||||||
- name: Set tag in Dockerfile
|
- name: Set tag in Dockerfile
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user