-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI process, build images for action support
- Loading branch information
1 parent
8a16574
commit f5051e3
Showing
10 changed files
with
174 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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 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,21 @@ | ||
FROM haskell:9.2.7 AS build | ||
|
||
WORKDIR /opt/trace-workflow-action | ||
COPY stack.yaml stack.yaml.lock package.yaml trace-workflow.cabal . | ||
RUN stack build --only-dependencies | ||
|
||
COPY app ./app | ||
COPY src ./src | ||
|
||
RUN mkdir bin && stack --local-bin-path ./bin build --copy-bins | ||
|
||
FROM debian:bullseye | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=build /opt/trace-workflow-action/bin/trace-workflow /trace-workflow | ||
|
||
ENTRYPOINT ["/trace-workflow"] |
This file contains 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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
docker build --progress=plain -t freckle/trace-workflow-action . | ||
# docker tag freckle/trace-workflow-action:latest public.ecr.aws/d6u9s6h9/freckle/trace-workflow-action:latest | ||
# docker push public.ecr.aws/d6u9s6h9/freckle/trace-workflow-action:latest | ||
|
||
|
||
|
||
|
||
|
||
gh repo list freckle --visibility public | awk '{ print $1 }' | while read repo; do gh search code --filename 'Dockerfile' --repo "$repo"; done; | ||
|
||
freckle/ajax-js, freckle/react-hooks, freckle/npm-package-template, freckle/resource-status-js, freckle/non-empty-js, freckle/aws-s3-lock-action, freckle/stack-action, freckle/commenter-action, freckle/await-statuses-action, freckle/grep-action, freckle/wiz-action, freckle/typescript-action-template, freckle/halt-action, freckle/freckle-app, freckle/flakes, freckle/stack-cache-action, freckle/wai-middleware-openapi, freckle/setup-platform-action, freckle/action-gh-release, freckle/slack-notify-action, freckle/parser-js, freckle/recurly-client, freckle/haskell-library-template, freckle/maybe-js, freckle/cancelable-promise-js, freckle/query-params-js, freckle/bcp47, freckle/mergeabot-action, freckle/github-workflow-commands, freckle/github-app-token, |
This file contains 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 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,3 @@ | ||
FROM otel/opentelemetry-collector-contrib:0.97.0 | ||
COPY config.yml /config.yml | ||
CMD ["--config", "/config.yml"] |
This file contains 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,40 @@ | ||
extensions: | ||
health_check: | ||
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:4317 | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
|
||
processors: | ||
batch: | ||
send_batch_max_size: 100 | ||
send_batch_size: 10 | ||
timeout: 10s | ||
attributes/tags: | ||
actions: | ||
- key: otlp | ||
value: true | ||
action: insert | ||
|
||
exporters: | ||
datadog: | ||
api: | ||
site: datadoghq.com | ||
key: $DD_API_KEY | ||
|
||
debug: | ||
verbosity: detailed | ||
sampling_initial: 5 | ||
sampling_thereafter: 200 | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [otlp] | ||
processors: [attributes/tags,batch] | ||
exporters: [datadog, debug] | ||
extensions: [health_check] |
This file contains 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 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 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 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 |
---|---|---|
|
@@ -37,7 +37,6 @@ library | |
aeson | ||
, base | ||
, clock | ||
, dotenv | ||
, extra | ||
, hs-opentelemetry-api | ||
, hs-opentelemetry-sdk | ||
|