Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update .env file with latest tag #12

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


# Images
IMAGE_VERSION=1.0.0
IMAGE_VERSION=1.1.1
IMAGE_NAME=718306648796.dkr.ecr.eu-west-1.amazonaws.com/opentelemetry-demo
TRACETEST_IMAGE_VERSION=v0.14.5

Expand Down
6 changes: 3 additions & 3 deletions .github/actions/update-env-file/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy Dash0 OTel Demo
description: deploy a release of the Dash0 fork of the OpenTelemetry demo
inputs:
containerImageVersion:
description: 'version tag of the Dash0 OTel Demo container images, e.g. 1.1.0'
description: "version tag of the Dash0 OTel Demo container images, e.g. 1.1.0"
required: true

runs:
Expand Down Expand Up @@ -36,12 +36,12 @@ runs:
run: gh pr review --approve "${{ steps.cpr.outputs.pull-request-number }}"
shell: bash
env:
GH_TOKEN: ${{ inputs.token }}
GH_TOKEN: ${{ github.token }}

- name: enable pull request auto merge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ inputs.token }}
token: ${{ github.token }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: squash
28 changes: 28 additions & 0 deletions .github/workflows/update-env-file-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
name: "Update .env file only"

on:
workflow_dispatch:
inputs:
version:
description: the version tag to put into the .env file
required: true
type: string

jobs:

update-release-in-env-file:
name: update .env file
runs-on: ubuntu-latest
concurrency: update-env-file
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: update .env file
uses: ./.github/actions/update-env-file
with:
containerImageVersion: ${{ inputs.version }}