Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
carles-grafana committed Dec 17, 2024
1 parent 026f504 commit bfdcad0
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bfdcad0

Please sign in to comment.