chore(build): add earthly
This commit is contained in:
parent
32cb594150
commit
d3912529d8
6
.earthlyignore
Normal file
6
.earthlyignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
.config-mapper.yml
|
||||
.config-mapper.yml.template
|
||||
.gitignore
|
||||
LICENSE
|
||||
README.md
|
||||
demo
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
.config-mapper.yml
|
||||
demo
|
||||
demo
|
||||
build
|
14
Earthfile
Normal file
14
Earthfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
VERSION 0.6
|
||||
|
||||
FROM golang:1.17-alpine3.15
|
||||
WORKDIR /config-mapper
|
||||
|
||||
build-macos:
|
||||
COPY . .
|
||||
RUN GOOS=darwin go build -o build/config-mapper main.go
|
||||
SAVE ARTIFACT build/config-mapper /config-mapper AS LOCAL build/x86-x64_darwin_config-mapper
|
||||
|
||||
build-linux:
|
||||
COPY . .
|
||||
RUN GOOS=linux go build -o build/config-mapper main.go
|
||||
SAVE ARTIFACT build/config-mapper /config-mapper AS LOCAL build/x86-x64_linux_config-mapper
|
Reference in New Issue
Block a user