Skip to content

Commit

Permalink
fix: templates version (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
verbanicm authored Mar 1, 2024
1 parent 746e6a2 commit 268f5db
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion abc.templates/deployments/contents/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

GITHUB_TOKEN_MINTER_VERSION='v0.0.16'
GITHUB_TOKEN_MINTER_VERSION='REPLACE_VERSION_TAG'
PLATFORM='amd64'
IMAGE_NAME="REPLACE_FULL_IMAGE_NAME:${GITHUB_TOKEN_MINTER_VERSION}-${GITHUB_SHA}"

Expand Down
17 changes: 16 additions & 1 deletion abc.templates/deployments/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: 'cli.abcxyz.dev/v1alpha1'
apiVersion: 'cli.abcxyz.dev/v1beta5'
kind: 'Template'

desc: 'Generate the components necessary to deploy GitHub Token Minter'
Expand Down Expand Up @@ -73,3 +73,18 @@ steps:
with: '{{.project_id}}'
- to_replace: 'REPLACE_REGION'
with: '{{.region}}'
- to_replace: 'REPLACE_VERSION_TAG'
with: '{{._git_tag}}'

- desc: 'Print warning if rendered without git tag'
action: 'print'
if: '_git_tag == ""'
params:
message: |-
#
# WARNING ##############################
#
# The template was rendered without a valid git tag. For best compatibility, we recommended
# re-rendering this template using one of the latest tags at https://github.com/abcxyz/github-metrics-aggregator/tags.
#
########################################
2 changes: 1 addition & 1 deletion abc.templates/infra/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: 'cli.abcxyz.dev/v1alpha1'
apiVersion: 'cli.abcxyz.dev/v1beta5'
kind: 'Template'

desc: 'Generate the infrastructure necessary to run GitHub Token Minter'
Expand Down

0 comments on commit 268f5db

Please sign in to comment.