forked from htdcx/code-push-server-go
-
Notifications
You must be signed in to change notification settings - Fork 0
[CX-2998] newrelic and airbrake integration #11
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
Open
kshitij-partech
wants to merge
11
commits into
main
Choose a base branch
from
newrelic-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6d55eac
newrelic and airbrake integration
kshitij-partech 2dc84e4
airbrake recovery added
kshitij-partech 0733873
github workflow changes
kshitij-partech e82c8ea
github workflow changes
kshitij-partech e3a4726
github workflow changes
kshitij-partech 36ee8a3
github workflow changes
kshitij-partech fc884bc
github workflow changes
kshitij-partech b3a1584
github workflow changes
kshitij-partech dda49e2
github workflow changes
kshitij-partech 1d5f8e1
github workflow changes
kshitij-partech f4f3808
newrelic and airbrake integration changes
kshitij-partech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Go CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| workflow_dispatch: | ||
| inputs: | ||
| skip_tests: | ||
| description: 'Skip running tests' | ||
| required: false | ||
| default: false | ||
| type: boolean | ||
| triggered_user: | ||
| description: 'Who triggered the workflow' | ||
| required: false | ||
| default: "<!here>" | ||
| type: string | ||
|
|
||
| jobs: | ||
| go-ci: | ||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| packages: read | ||
| uses: punchh/GHA-central-workflow/.github/workflows/go-ci.yml@main | ||
|
|
||
| with: | ||
| repository: ${{ github.repository }} | ||
| branch: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name) }} | ||
| go_version: 1.24.1 | ||
| triggered_user: ${{ github.event_name == 'workflow_dispatch' && inputs.triggered_user || '<!here>' }} | ||
| skip_tests: ${{ github.event_name == 'workflow_dispatch' && inputs.skip_tests || false }} | ||
| test_cases: false | ||
| snyk_severity_threshold: "critical" | ||
| go_build: true | ||
| secrets: | ||
| SVC_ACCOUNT_GITHUB_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_GITHUB_ORG_TOKEN }} | ||
| SVC_ACCOUNT_SNYK_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_SNYK_ORG_TOKEN }} | ||
| CAPTAIN_DEVOPS_SLACK_BOT_TOKEN: ${{ secrets.CAPTAIN_DEVOPS_SLACK_BOT_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,11 @@ | ||
| # Build the application from source | ||
| FROM golang:1.21 AS build-stage | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY go.mod go.sum ./ | ||
| RUN go mod download | ||
|
|
||
| COPY . . | ||
|
|
||
| RUN CGO_ENABLED=0 GOOS=linux go build -o /server main.go | ||
|
|
||
| # Deploy the application binary into a lean image | ||
| FROM alpine:3.21.3 AS build-release-stage | ||
|
|
||
| FROM alpine:3.21.3 | ||
| RUN apk update \ | ||
| && apk --no-cache add ca-certificates \ | ||
| && apk --no-cache add -U tzdata \ | ||
| && rm -rf /var/cache/apk/* | ||
|
|
||
| WORKDIR /usr/app/ | ||
| && apk --no-cache add ca-certificates \ | ||
| && apk --no-cache add -U tzdata \ | ||
| && rm -rf /var/cache/apk/* | ||
|
|
||
| COPY --from=build-stage server . | ||
| WORKDIR /server | ||
| COPY server . | ||
|
|
||
|
kshitij-partech marked this conversation as resolved.
|
||
| EXPOSE 8080 | ||
| ENTRYPOINT ["./server"] | ||
| CMD ["./server"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.