From fe760dd57b603b92564007ee8d9c67a0841aed46 Mon Sep 17 00:00:00 2001 From: ruzo Date: Tue, 28 May 2024 15:58:38 +0300 Subject: [PATCH] fix: docker build ci --- .github/workflows/docker.yml | 4 ++-- docker/push.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 55bad3ba..60466c1e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,10 +18,10 @@ jobs: with: submodules: true - - name: Generate themes + - name: Generate and push image to ghcr run: | # build docker image for the ci sh docker/build.sh -v no # push the image to the registry - sh docker/push.sh -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}" + sh docker/push.sh -u "${{ github.actor }}" -p "${{ secrets.GITHUB_TOKEN }}" diff --git a/docker/push.sh b/docker/push.sh index 90d1fcd2..83a72b60 100644 --- a/docker/push.sh +++ b/docker/push.sh @@ -61,6 +61,6 @@ $CONTAINER_TOOL login ghcr.io -u $USERNAME --password $PASSWORD $CONTAINER_TOOL push "$IMAGE_NAME:latest" # Execute docker push for specific version if VERSION is not "no" -if [ "$VERSION" == "no" ]; then +if [ "$VERSION" != "no" ]; then $CONTAINER_TOOL push "$IMAGE_NAME:$VERSION" fi