File tree Expand file tree Collapse file tree 4 files changed +33
-6
lines changed
Expand file tree Collapse file tree 4 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 1+ name : EasyCrypt Docker Containers Build and Publish
2+
3+ on :
4+ push :
5+ branches :
6+ - ' main'
7+ - ' latest'
8+ tags :
9+ - ' r[0-9]+.[0-9]+'
10+ workflow_dispatch
11+
12+ jobs :
13+ make-image :
14+ name : Make and Publish Container Images
15+ runs-on : ubuntu-24.04
16+ strategy :
17+ fail-fast : true
18+ matrix :
19+ target : [base, build, test]
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Install docker and docker-buildx
23+ run : apt install docker docker-buildx
24+ - name : Build ${{ matrix.target }} Image
25+ run : TAG=${{ github.ref_name }} VARIANT=${{ matrix.target }} make -C scripts/docker publish
26+
Original file line number Diff line number Diff line change 22
33FROM debian:stable
44
5- MAINTAINER Pierre-Yves Strub <pierre-yves@strub.nu>
5+ LABEL org.opencontainers.image.maintainer=" Pierre-Yves Strub <pierre-yves@strub.nu>"
66
77ARG user=charlie
88
9- ENV DEBIAN_FRONTEND noninteractive
9+ ENV DEBIAN_FRONTEND= noninteractive
1010
1111RUN \
1212 apt-get -q -y update && \
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ FROM ./Dockerfile.build
55ARG EC_VERSION=main
66
77RUN \
8- opam pin --dev-repo \
8+ opam pin \
99 add -n easycrypt https://github.com/EasyCrypt/easycrypt.git#${EC_VERSION} && \
1010 opam install -v easycrypt && \
1111 rm -rf .opam/packages.dev/*
Original file line number Diff line number Diff line change 22
33# --------------------------------------------------------------------
44VARIANT ?= build
5+ TAG ?= main
56
67# --------------------------------------------------------------------
78.PHONY : default build publish
@@ -10,9 +11,9 @@ default: build
1011
1112build :
1213 docker build -f Dockerfile.$(VARIANT ) \
13- --platform linux/amd64 \
14- -t ghcr.io/easycrypt/ec-$(VARIANT ) -box \
14+ --platform linux/amd64 \
15+ -t ghcr.io/easycrypt/ec-$(VARIANT ) -box : $( TAG ) \
1516 .
1617
1718publish :
18- docker push ghcr.io/easycrypt/ec-$(VARIANT ) -box
19+ docker push ghcr.io/easycrypt/ec-$(VARIANT ) -box: $( TAG )
You can’t perform that action at this time.
0 commit comments