From 981b93d2cee5dbf0293dabed2d13e0d3897a031b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20K=C3=B8hler=20Warmdahl?= Date: Fri, 13 Dec 2024 10:53:08 +0100 Subject: [PATCH] check if docker image exist --- .github/workflows/release.yaml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 423088b11..367c6288f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,6 +82,9 @@ jobs: echo "::error:: Tag version is not correct. Tag version: $TAG_VERSION version from package.json: $VERSION" exit 1 fi + aws ecr describe-images --registry-id "192549843005" --repository-name "concordium/desktop-wallet-ci" --region eu-west-1 --image-ids=imageTag=$VERSION-test + EC=$? + echo "EXIT_CODE=$EC" >> $GITHUB_ENV echo "VERSION=$VERSION-test" >> $GITHUB_OUTPUT echo "CONTAINER_TAG=${{ env.ECR_REPO }}:$VERSION-test" >> $GITHUB_OUTPUT @@ -89,6 +92,7 @@ jobs: uses: docker/setup-buildx-action@v3 - name: build ci image + if: ${{ env.EXIT_CODE == 254 }} uses: docker/build-push-action@v6 with: push: true @@ -152,12 +156,12 @@ jobs: - name: Output dependency versions run: | rustup default stable - echo "::info:: node version: $(node --version)" - echo "::info:: npm version: $(npm --version)" - echo "::info:: yarn version: $(yarn --version)" - echo "::info:: python version: $(python --version)" - echo "::info:: rustup version: $(rustup show)" - echo "::info:: wasm-pack version: $(wasm-pack --version)" + echo "::notice::node version: $(node --version)" + echo "::notice::npm version: $(npm --version)" + echo "::notice::yarn version: $(yarn --version)" + echo "::notice::python version: $(python --version)" + echo "::notice::rustup version: $(rustup show)" + echo "::notice::wasm-pack version: $(wasm-pack --version)" - name: Build and publish run: | @@ -226,12 +230,12 @@ jobs: - name: Output dependency versions shell: bash run: | - echo "::info:: node version: $(node --version)" - echo "::info:: npm version: $(npm --version)" - echo "::info:: yarn version: $(yarn --version)" - echo "::info:: python version: $(python --version)" - echo "::info:: rustup version: $(rustup show)" - echo "::info:: wasm-pack version: $(wasm-pack --version)" + echo "::notice::node version: $(node --version)" + echo "::notice::npm version: $(npm --version)" + echo "::notice::yarn version: $(yarn --version)" + echo "::notice::python version: $(python --version)" + echo "::notice::rustup version: $(rustup show)" + echo "::notice::wasm-pack version: $(wasm-pack --version)" - name: Build and push desktop wallet shell: bash