steps:
- name: 'gcr.io/cloud-builders/wget'
  args:
    - '--header=Metadata-Flavor: Google'
    - '-Oaccess_token'
    - 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token'
- name: 'gcr.io/cloud-builders/docker'
  args:
    - 'build'
    - '--build-arg'
    - 'VIVADO_URL=${_VIVADO_URL}'
    - '-t'
    - '${_GCR_ZONE}/$PROJECT_ID/${_IMAGE_NAME}:${TAG_NAME}'
    - '.'
timeout: '7200s'
substitutions:
  _GCR_ZONE: 'gcr.io'
  _IMAGE_NAME: 'prjxray-dev-env'
images:
  - '${_GCR_ZONE}/$PROJECT_ID/${_IMAGE_NAME}:${TAG_NAME}'

steps:
- name: 'gcr.io/cloud-builders/wget'
  args:
    - '--header=Metadata-Flavor: Google'
    - '-Oaccess_token'
    - 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token'
- name: 'gcr.io/cloud-builders/docker'
  args:
    - 'build'
    - '--build-arg'
    - 'VIVADO_URL=${_VIVADO_URL}'
    - '-t'
    - '${_GCR_ZONE}/$PROJECT_ID/${_IMAGE_NAME}:${SHORT_SHA}'
    - '.'
timeout: '7200s'
substitutions:
  _GCR_ZONE: 'gcr.io'
  _IMAGE_NAME: 'prjxray-dev-env'
images:
  - '${_GCR_ZONE}/$PROJECT_ID/${_IMAGE_NAME}:${SHORT_SHA}'

Use ${SHORT_SHA} rather than ${TAG_NAME}
Use ${SHORT_SHA} rather than ${TAG_NAME}

Signed-off-by: Tim 'mithro' Ansell <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@mith.ro>