fix(ci/cd): Missing apt update, wrong exit code
Some checks failed
Build / build (push) Failing after 16m41s
Some checks failed
Build / build (push) Failing after 16m41s
This commit is contained in:
parent
d837b6f4ef
commit
adbba165a6
@ -30,12 +30,14 @@ jobs:
|
|||||||
id: check-build-status
|
id: check-build-status
|
||||||
run: |
|
run: |
|
||||||
echo ${{ steps.meta.outputs.tag }}
|
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 0; else echo "Desn't exist" && exit 0; fi
|
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: |
|
||||||
sed -i "s/ARG PACKAGE_VERSION=/ARG PACKAGE_VERSION=$(echo ${{ steps.meta.outputs.tag }} | cut -d ':' -f2)/g" Dockerfile
|
sed -i "s/ARG PACKAGE_VERSION=/ARG PACKAGE_VERSION=$(echo ${{ steps.meta.outputs.tag }} | cut -d ':' -f2)/g" Dockerfile
|
||||||
|
|
||||||
|
- name: Update repositories
|
||||||
|
run: sudo apt update
|
||||||
- name: Install Docker
|
- name: Install Docker
|
||||||
uses: awalsh128/cache-apt-pkgs-action@latest
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user