Skip to content

Commit a269c09

Browse files
author
Saman Tipputhynhean
committed
Update to github arm runner
1 parent e7af63b commit a269c09

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,20 @@ jobs:
191191
- name: Check out code
192192
uses: actions/checkout@v4
193193

194-
- name: Docker
195-
run: make docker
194+
- name: Extract VERSION from Makefile
195+
id: get_version
196+
run: |
197+
VERSION=$(make --no-print-directory get-version)
198+
echo "version=$VERSION" >> $GITHUB_OUTPUT
199+
200+
- name: Build ARM64 and AMD64 Docker images
201+
uses: docker/build-push-action@v5
202+
with:
203+
context: .
204+
file: ./Dockerfile
205+
platforms: linux/arm64,linux/amd64
206+
push: false
207+
tags: moov/ach:${{ steps.get_version.outputs.version }},moov/ach:latest
196208

197209
- name: Docker Push
198210
run: |+

makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,6 @@ cover-test:
104104
go test -coverprofile=cover.out ./...
105105
cover-web:
106106
go tool cover -html=cover.out
107+
108+
get-version:
109+
@echo $(VERSION)

0 commit comments

Comments
 (0)