ci: Fix tag detection for 'latest'

add/first-example v0.8.1
mudler 2 years ago
parent e786576b95
commit a9cd6b3ca3
  1. 2
      .github/workflows/image.yml
  2. 2
      kubernetes/deployment.yaml

@ -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

@ -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

Loading…
Cancel
Save