From a9cd6b3ca3c2589fb166c6e885517482797138d4 Mon Sep 17 00:00:00 2001 From: mudler Date: Thu, 13 Apr 2023 01:37:09 +0200 Subject: [PATCH] ci: Fix tag detection for 'latest' --- .github/workflows/image.yml | 2 +- kubernetes/deployment.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 2398e91c..142d142c 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -32,7 +32,7 @@ jobs: # If the VERSION looks like a version number, assume that # this is the most recent version of the image and also # tag it 'latest'. - if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then + if [[ $VERSION =~ ^v[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then TAGS="$TAGS,${DOCKER_IMAGE}:latest" fi diff --git a/kubernetes/deployment.yaml b/kubernetes/deployment.yaml index 985693ec..1c4c64a5 100644 --- a/kubernetes/deployment.yaml +++ b/kubernetes/deployment.yaml @@ -25,7 +25,7 @@ spec: - name: llama args: - api - image: quay.io/go-skynet/llama-cli:v0.3 + image: quay.io/go-skynet/llama-cli:latest --- apiVersion: v1 kind: Service