File tree Expand file tree Collapse file tree 4 files changed +51
-9
lines changed Expand file tree Collapse file tree 4 files changed +51
-9
lines changed Original file line number Diff line number Diff line change 4040 image : ' erlang:${{ matrix.otp_vsn }}'
4141 steps :
4242 - shell : bash
43- run : |
44- apt-get update
45- apt-get -y install tcl tcl-dev gettext
46- cd /usr/src/
47- wget https://github.com/git/git/archive/v2.18.0.tar.gz -O git.tar.gz
48- tar -xf git.tar.gz
49- cd git-*
50- make prefix=/usr/local all
51- make prefix=/usr/local install
43+ run : ./Dockerfile.build.sh
5244 - uses : actions/checkout@v2
5345 with :
5446 fetch-depth : 0
Original file line number Diff line number Diff line change 1+ # syntax=docker/dockerfile:1
2+ ARG FROM
3+ FROM ${FROM}
4+
5+ LABEL maintainer=
"[email protected] " 6+ LABEL vendor="Y Software AB"
7+ LABEL url="https://github.com/for-get/jesse"
8+ LABEL vcs-url="https://github.com/for-get/jesse"
9+ ARG LABEL_VCS_REF="0"
10+ LABEL vcs-ref=${LABEL_VCS_REF}
11+ ARG LABEL_BUILD_DATE="1970-01-01T00:00:00Z"
12+ LABEL build-date=${LABEL_BUILD_DATE}
13+
14+
15+
16+ COPY . /jesse
17+ RUN cd /jesse && ./Dockerfile.build.sh
18+ RUN cd /jesse && make
19+
20+ CMD /bin/jesse
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+
4+ apt-get update
5+ apt-get -y install tcl tcl-dev gettext
6+ cd /usr/src/
7+ wget https://github.com/git/git/archive/v2.18.0.tar.gz -O git.tar.gz
8+ tar -xf git.tar.gz
9+ (
10+ cd git-*
11+ make prefix=/usr/local all
12+ make prefix=/usr/local install
13+ )
14+ rm git.tar.gz
15+ rm -r git-*
Original file line number Diff line number Diff line change @@ -153,3 +153,18 @@ rebar3.OTP23:
153153.PHONY : rebar3.OTP24
154154rebar3.OTP24 :
155155 $(LN ) -sf rebar3.OTP22 $@
156+
157+ .PHONY : docker
158+ docker :
159+ # docker context create aws-docker-amd64 --docker host=ssh://ec2-13-51-198-153.eu-north-1.compute.amazonaws.com
160+ # docker context create aws-docker-arm64 --docker host=ssh://ec2-13-48-46-86.eu-north-1.compute.amazonaws.com
161+ # docker buildx create --name aws-multiarch-builder aws-docker-amd64
162+ # docker buildx create --name aws-multiarch-builder --append aws-docker-arm64
163+ # docker use aws-multiarch-builder
164+ docker buildx build . \
165+ --push \
166+ --platform linux/amd64,linux/arm64 \
167+ --tag ysoftwareab/jesse:$$(git describe --tags --first-parent --always) \
168+ --build-arg FROM=erlang:latest \
169+ --build-arg LABEL_VCS_REF=$$(git rev-parse HEAD) \
170+ --build-arg LABEL_BUILD_DATE=$$(date -u +"%Y-%m-%dT%H:%M:%SZ")
You can’t perform that action at this time.
0 commit comments