Skip to content

Commit

Permalink
fix: release job issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxres-fr committed May 12, 2021
1 parent f83bb52 commit 2018ffe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
22 changes: 8 additions & 14 deletions docker/cli-tools/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,18 @@ timeout: 1200s
steps:
- name: 'gcr.io/cloud-builders/docker'
id: toolbox
args: ['build', '-t', 'gcr.io/forgeops-public/toolbox', 'toolbox']
args: ['build', '-t', 'gcr.io/$PROJECT_ID/toolbox', 'toolbox']
dir: docker/cli-tools
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/repo', 'repo']
dir: docker/cli-tools
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/engineering-devops/repo', 'repo']
dir: docker/cli-tools
waitFor:
- toolbox
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/forgeops-public/git-server', 'git-server']
args: ['build', '-t', 'gcr.io/$PROJECT_ID/git-server', 'git-server']
dir: docker/cli-tools
waitFor: ['-']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/forgeops-public/patcher:7.1-dev', 'patcher']
dir: docker/cli-tools
waitFor: ['-']

images:
- gcr.io/forgeops-public/toolbox
- gcr.io/engineering-devops/repo
- gcr.io/forgeops-public/git-server
- gcr.io/forgeops-public/patcher:7.1-dev
- gcr.io/$PROJECT_ID/toolbox
- gcr.io/$PROJECT_ID/repo
- gcr.io/$PROJECT_ID/git-server
13 changes: 9 additions & 4 deletions release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
env:
- REPO=$_REPO
- IMAGE_TAG=$TAG_NAME
args:
- '-c'
Expand All @@ -17,12 +18,14 @@ steps:
entrypoint: bash
env:
- IMAGE_TAG=$TAG_NAME
- PROFILE_NAME=$_PROFILE_NAME
- REPO=$_REPO
args:
- '-c'
- |-
./bin/build-cdk-image-tags
./cicd/bin/build-image-tags
- name: 'gcr.io/engineering-devops/repo'
- name: 'gcr.io/$PROJECT_ID/repo'
entrypoint: bash
secretEnv:
- 'GH_TOKEN'
Expand All @@ -32,9 +35,11 @@ steps:
args:
- '-c'
- |-
make -f docker/cli-tools/repo/Makefile release
[[ $_CREATE_RELEASE == 1 ]] \
&& make -f docker/cli-tools/repo/Makefile release \
|| echo "Not creating release."
availableSecrets:
secretManager:
- versionName: projects/1067706085367/secrets/GH_API_CLOUDBUILD/versions/2
- versionName: projects/1067706085367/secrets/GH_API_CLOUDBUILD/versions/latest
env: 'GH_TOKEN'

0 comments on commit 2018ffe

Please sign in to comment.