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