Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94cf442

Browse files
authored
Merge branch 'main' into closeconn
2 parents 5601b4d + 5bfdb0c commit 94cf442

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/coder.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,7 @@ jobs:
187187
deploy:
188188
name: "deploy"
189189
runs-on: ubuntu-latest
190-
# Temporarily disable the 'deploy' job until issue is fixed:
191-
# https://github.com/coder/coder/issues/287
192-
# As a part of a fix for that, uncomment the below line
193-
# and delete the 'if' after:
194-
# if: github.event_name != 'pull_request'
195-
if: false
190+
if: github.event_name != 'pull_request'
196191
permissions:
197192
contents: read
198193
id-token: write

images/coder/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
FROM registry.access.redhat.com/ubi8/ubi:latest
22

3+
RUN yum install -y yum-utils
4+
RUN yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
5+
RUN yum install -y terraform
6+
37
COPY coderd /coder/coderd
48
RUN chmod +x /coder/coderd
59

scripts/datadog-cireport/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ func main() {
5959
}
6060
commitParts := strings.Split(string(commitData), ",")
6161

62+
branch := os.Getenv("GITHUB_HEAD_REF")
63+
if branch == "" {
64+
branch = os.Getenv("GITHUB_BASE_REF")
65+
}
66+
6267
tags := map[string]string{
6368
"service": "coder",
6469
"_dd.cireport_version": "2",
@@ -78,7 +83,7 @@ func main() {
7883
"ci.provider.name": "github",
7984
"ci.workspace_path": os.Getenv("GITHUB_WORKSPACE"),
8085

81-
"git.branch": os.Getenv("GITHUB_REF_NAME"),
86+
"git.branch": branch,
8287
"git.commit.sha": githubSHA,
8388
"git.repository_url": fmt.Sprintf("%s/%s.git", githubServerURL, githubRepository),
8489

0 commit comments

Comments
 (0)