Skip to content

Commit

Permalink
Add Labels and Annotations to cloudbuild and dockerfiles tools (#2783)
Browse files Browse the repository at this point in the history
* Add Labels to cloudbuild and dockerfiles tools

* wip

* feat: allow docker image parametrization

* feat: add labels support

* chore: add activemq example

* feat: add buildx env setup and improve template dependencies logic

* chore: revert activemq changes

* fix: readme
  • Loading branch information
armandomiani authored Nov 18, 2024
1 parent c2e6ff9 commit da37d72
Show file tree
Hide file tree
Showing 3 changed files with 380 additions and 306 deletions.
9 changes: 5 additions & 4 deletions tools/dockertools.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -14,8 +14,10 @@

FROM marketplace.gcr.io/google/debian11

ENV BAZEL_VERSION 0.19.2
ENV BAZEL_ARCH linux_amd64_stripped
ENV BAZEL_VERSION=0.19.2
ENV BAZEL_ARCH=linux_amd64_stripped

COPY ./ click-to-deploy/tools

RUN set -eux \
&& apt-get update \
Expand All @@ -35,7 +37,6 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | d
&& apt install gh

RUN set -eux \
&& git clone https://github.com/GoogleCloudPlatform/click-to-deploy.git \
&& cd click-to-deploy/tools \
&& bazel build dockerversioning/scripts/dockerfiles:dockerfiles dockerversioning/scripts/cloudbuild:cloudbuild \
&& cp bazel-bin/dockerversioning/scripts/dockerfiles/${BAZEL_ARCH}/dockerfiles /bin/dockerfiles \
Expand Down
Loading

0 comments on commit da37d72

Please sign in to comment.