Skip to content

Commit 420d894

Browse files
committed
slack-thread-expander
1 parent f585f28 commit 420d894

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(import './docker-build-simple.libsonnet')('slack-thread-expander')
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"jobs": {
3+
"build": {
4+
"name": "build",
5+
"permissions": {
6+
"contents": "read",
7+
"id-token": "write"
8+
},
9+
"runs-on": "ubuntu-latest",
10+
"steps": [
11+
{
12+
"uses": "docker/setup-qemu-action@v2"
13+
},
14+
{
15+
"uses": "docker/setup-buildx-action@v2"
16+
},
17+
{
18+
"uses": "aws-actions/configure-aws-credentials@v1",
19+
"with": {
20+
"aws-region": "ap-northeast-1",
21+
"role-skip-session-tagging": true,
22+
"role-to-assume": "arn:aws:iam::005216166247:role/GhaDockerPush"
23+
}
24+
},
25+
{
26+
"id": "login-ecr",
27+
"uses": "aws-actions/amazon-ecr-login@v1"
28+
},
29+
{
30+
"uses": "docker/build-push-action@v3",
31+
"with": {
32+
"context": "{{defaultContext}}:slack-thread-expander",
33+
"platforms": "linux/arm64",
34+
"push": true,
35+
"tags": "${{ steps.login-ecr.outputs.registry }}/slack-thread-expander:${{ github.sha }},${{ steps.login-ecr.outputs.registry }}/slack-thread-expander:latest"
36+
}
37+
}
38+
]
39+
}
40+
},
41+
"name": "docker-slack-thread-expander",
42+
"on": {
43+
"push": {
44+
"branches": [
45+
"main",
46+
"test"
47+
],
48+
"paths": [
49+
"slack-thread-expander/**",
50+
".github/workflows/docker-slack-thread-expander.yml"
51+
]
52+
}
53+
}
54+
}

slack-thread-expander/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM public.ecr.aws/docker/library/rust:1.74-bookworm as builder
2+
RUN cargo install --git https://github.com/eagletmt/slack-thread-expander --rev cd091d547ac6e6cc478855af887575355018f241
3+
4+
FROM public.ecr.aws/docker/library/debian:bookworm-slim
5+
RUN apt-get update && apt-get install -y ca-certificates && apt-get clean && rm -rf /var/lib/apt/lists/*
6+
COPY --from=builder /usr/local/cargo/bin/slack-thread-expander /usr/local/bin/slack-thread-expander
7+
CMD ["slack-thread-expander"]

0 commit comments

Comments
 (0)