File tree Expand file tree Collapse file tree 4 files changed +46
-17
lines changed Expand file tree Collapse file tree 4 files changed +46
-17
lines changed Original file line number Diff line number Diff line change 90
90
- name : Checkout
91
91
uses : actions/checkout@v4
92
92
93
+ - name : Set up QEMU
94
+ uses : docker/setup-qemu-action@v3
95
+
96
+ - name : Set up Docker Buildx
97
+ uses : docker/setup-buildx-action@v3
98
+
93
99
- name : Login to Docker
94
100
uses : docker/login-action@v3
95
101
if : env.REGISTRY_USERNAME != ''
@@ -98,17 +104,14 @@ jobs:
98
104
username : ${{ secrets.REGISTRY_USERNAME }}
99
105
password : ${{ secrets.REGISTRY_PASSWORD }}
100
106
101
- - name : Build 'dev' Docker image
102
- if : " !contains(github.ref, 'refs/heads/master')"
103
- run : make docker
104
- env :
105
- DOCKER_TAG : ${{ github.sha }}
106
-
107
- - name : Build and push 'edge' Docker image
107
+ - name : Build and push Docker image
108
108
if : env.REGISTRY_USERNAME != '' && contains(github.ref, 'refs/heads/master')
109
- run : make docker push
110
- env :
111
- DOCKER_TAG : edge
109
+ uses : docker/build-push-action@v5
110
+ with :
111
+ outputs : " type=registry,push=true"
112
+ platforms : linux/amd64,linux/arm64
113
+ push : true
114
+ tags : quay.io/${{ env.REPO_OWNER }}/terraform-docs:edge
112
115
113
116
publish :
114
117
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 54
54
id : vars
55
55
run : echo ::set-output name=tag::${GITHUB_REF:11} # tag name without leading 'v'
56
56
57
+ - name : Set up QEMU
58
+ uses : docker/setup-qemu-action@v3
59
+
60
+ - name : Set up Docker Buildx
61
+ uses : docker/setup-buildx-action@v3
62
+
57
63
- name : Login to Docker
58
64
uses : docker/login-action@v3
59
65
if : env.REGISTRY_USERNAME != ''
63
69
password : ${{ secrets.REGISTRY_PASSWORD }}
64
70
65
71
- name : Build and push Docker image
66
- run : make docker push
67
- env :
68
- DOCKER_TAG : ${{ steps.vars.outputs.tag }}
69
- REGISTRY_USERNAME : ${{ secrets.REGISTRY_USERNAME }}
70
- REGISTRY_PASSWORD : ${{ secrets.REGISTRY_PASSWORD }}
72
+ uses : docker/build-push-action@v5
73
+ with :
74
+ outputs : " type=registry,push=true"
75
+ platforms : linux/amd64,linux/arm64
76
+ push : true
77
+ tags : quay.io/${{ env.REPO_OWNER }}/terraform-docs:${{ steps.vars.outputs.tag }}
Original file line number Diff line number Diff line change 25
25
with :
26
26
go-version : ${{ env.GO_VERSION }}
27
27
28
+ - name : Set up QEMU
29
+ uses : docker/setup-qemu-action@v3
30
+
31
+ - name : Set up Docker Buildx
32
+ uses : docker/setup-buildx-action@v3
33
+
28
34
- name : Login to Docker
29
35
uses : docker/login-action@v3
30
36
if : env.REGISTRY_USERNAME != ''
Original file line number Diff line number Diff line change @@ -48,8 +48,21 @@ changelog:
48
48
dockers :
49
49
- dockerfile : scripts/release/Dockerfile
50
50
image_templates :
51
- - " quay.io/terraform-docs/terraform-docs:latest"
52
- - " quay.io/terraform-docs/terraform-docs:{{ .RawVersion }}"
51
+ - " quay.io/terraform-docs/terraform-docs:latest-amd64"
52
+ - " quay.io/terraform-docs/terraform-docs:{{ .RawVersion }}-amd64"
53
+ use : buildx
54
+ build_flag_templates :
55
+ - " --pull"
56
+ - " --platform=linux/amd64"
57
+ - dockerfile : scripts/release/Dockerfile
58
+ image_templates :
59
+ - " quay.io/terraform-docs/terraform-docs:latest-arm64"
60
+ - " quay.io/terraform-docs/terraform-docs:{{ .RawVersion }}-arm64"
61
+ use : buildx
62
+ build_flag_templates :
63
+ - " --pull"
64
+ - " --platform=linux/arm64"
65
+ goarch : arm64
53
66
54
67
brews :
55
68
- tap :
You can’t perform that action at this time.
0 commit comments