I have the following skaffold:
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
namespace: default
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx-base
image: us-central1-docker.pkg.dev/registry/nginx/base:latest
imagePullPolicy: Always
and am using the following cloud deploy command to deploy it:
gcloud deploy releases create "my-deployment-001"
--delivery-pipeline my-pipeline
--project my-project
--region us-central1
--annotations "$annotations"
--skaffold-file "path/to/skaffold.yaml"
--images "nginx-base=us-central1-docker.pkg.dev/registry/nginx/base:<IMAGE TAG>"
It seems that the nginx-base image is not being given the correct tag. Here’s part of of the rendered skaffold:
- image: us-central1-docker.pkg.dev/registry/nginx/base:latest
imagePullPolicy: Always
which still contains the old tag. I’ve tried setting the images flag to something like old-url:latest=new-url:tag
, but that doesn’t seem to work either. the documentation seems to imply that one of these would work.
What am I doing wrong?
Bob G Ruffenhouser is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.