steps:
- name: 'gcr.io/cloud-builders/go'
  args: ['test', '-v', '-race', './...']
  env: ['PROJECT_ROOT=github.com/metal-tile/land']
- name: 'gcr.io/cloud-builders/go'
  args: ['install', '-race', '-a', '-ldflags', '-s', '-installsuffix', 'cgo', 'github.com/metal-tile/land']
  env: [
    'PROJECT_ROOT=github.com/metal-tile/land',
    'CGO_ENABLED=0',
    'GOOS=linux'
  ]
- name: 'gcr.io/cloud-builders/docker'
  args: ['build', '--tag=gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA', '.']
- name: 'gcr.io/cloud-builders/docker'
  args: ["push", "gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA"]
- name: 'gcr.io/cloud-builders/kubectl'
  args:
    - set
    - image
    - deployment/land-node
    - land-node=gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA
  env:
    - 'CLOUDSDK_COMPUTE_ZONE=us-central1-f'
    - 'CLOUDSDK_CONTAINER_CLUSTER=metal-tile'
images: ['gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA']
steps:
- name: 'gcr.io/cloud-builders/go'
  args: ['test', '.']
  env: ['PROJECT_ROOT=github.com/metal-tile/land']
- name: 'gcr.io/cloud-builders/go'
  args: ['install', '-a', '-ldflags', '-s', '-installsuffix', 'cgo', 'github.com/metal-tile/land']
  env: [
    'PROJECT_ROOT=github.com/metal-tile/land',
    'CGO_ENABLED=0',
    'GOOS=linux'
  ]
- name: 'gcr.io/cloud-builders/docker'
  args: ['build', '--tag=gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA', '.']
- name: 'gcr.io/cloud-builders/docker'
  args: ["push", "gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA"]
- name: 'gcr.io/cloud-builders/kubectl'
  args:
    - set
    - image
    - deployment/land-node
    - land-node=gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA
  env:
    - 'CLOUDSDK_COMPUTE_ZONE=us-central1-f'
    - 'CLOUDSDK_CONTAINER_CLUSTER=metal-tile'
images: ['gcr.io/$PROJECT_ID/metal-tile/land/$BRANCH_NAME:$COMMIT_SHA']
Revert "go test, installに -race optionを追加した"
Revert "go test, installに -race optionを追加した"

This reverts commit c04e4c14417369f0ef17cb644814ebef122f3143.
