From bfdcad07c8f43c1bd6b15f96bb345137aaf41526 Mon Sep 17 00:00:00 2001 From: Carles Garcia Cabot Date: Tue, 17 Dec 2024 13:09:16 +0100 Subject: [PATCH] wip --- .github/workflows/docker.yml | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index bf9b5247084..b7be1e7a6bd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -346,3 +346,55 @@ jobs: # echo "grafana/tempo:$(./tools/image-tag)" > .tags-for-cd-tempo # echo "grafana/tempo-query:$(./tools/image-tag)" > .tags-for-cd-tempo_query # echo "grafana/tempo-vulture:$(./tools/image-tag)" > .tags-for-cd-tempo_vulture +# +# - name: Authenticate to GAR +# uses: grafana/shared-workflows/actions/login-to-gar@main +# id: login-to-gar +# with: +# registry: us-docker.pkg.dev +# environment: prod +# +# - name: Get Vault secrets +# uses: grafana/shared-workflows/actions/get-vault-secrets@main +# with: +# common_secrets: | +# GITHUB_APP_ID=updater-app:app-id +# GITHUB_APP_INSTALLATION_ID=updater-app:app-installation-id +# GITHUB_APP_PRIVATE_KEY=updater-app:private-key + +# - name: Update jsonnet +# run: | +# set -e -o pipefail +# +# cat << EOF > config.json +# { +# "destination_branch": "master", +# "pull_request_branch_prefix": "auto-merge/cd-tempo-dev", +# "pull_request_enabled": true, +# "pull_request_existing_strategy": "ignore", +# "repo_name": "deployment_tools", +# "update_jsonnet_attribute_configs": [ +# { +# "file_path": "ksonnet/environments/tempo/dev-us-central-0.tempo-dev-01/images.libsonnet", +# "jsonnet_key": "tempo", +# "jsonnet_value_file": ".tags-for-cd-tempo" +# }, +# { +# "file_path": "ksonnet/environments/tempo/dev-us-central-0.tempo-dev-01/images.libsonnet", +# "jsonnet_key": "tempo_query", +# "jsonnet_value_file": ".tags-for-cd-tempo_query" +# }, +# { +# "file_path": "ksonnet/environments/tempo/dev-us-central-0.tempo-dev-01/images.libsonnet", +# "jsonnet_key": "tempo_vulture", +# "jsonnet_value_file": ".tags-for-cd-tempo_vulture" +# } +# ] +# } +# EOF +# +# docker run --rm \ +# -e GITHUB_APP_ID="$GITHUB_APP_ID" \ +# -e GITHUB_APP_INSTALLATION_ID="$GITHUB_APP_INSTALLATION_ID" \ +# -e GITHUB_APP_PRIVATE_KEY="$GITHUB_APP_PRIVATE_KEY" \ +# -e CONFIG_JSON="$(cat config.json)" us-docker.pkg.dev/grafanalabs-global/docker-deployment-tools-prod/updater