Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: EasyCrypt Docker Containers Build

on:
push:
branches:
- 'main'
- 'latest'
- 'docker-builds-in-ci'
tags:
- 'r[0-9]+.[0-9]+'
workflow_dispatch:

jobs:
make-images:
name: Build Container Images
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build `base` Image
run: TAG=${{ github.ref_name }} VARIANT=base make -C scripts/docker
- name: Build `build` Image
run: TAG=${{ github.ref_name }} VARIANT=build make -C scripts/docker
- name: Build `formosa` Image
run: TAG=${{ github.ref_name }} VARIANT=formosa make -C scripts/docker

5 changes: 3 additions & 2 deletions scripts/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# --------------------------------------------------------------------
VARIANT ?= build
TAG ?= main

# --------------------------------------------------------------------
.PHONY: default build publish
Expand All @@ -11,8 +12,8 @@ default: build
build:
docker build -f Dockerfile.$(VARIANT) \
--platform linux/amd64 \
-t ghcr.io/easycrypt/ec-$(VARIANT)-box \
-t ghcr.io/easycrypt/ec-$(VARIANT)-box:$(TAG) \
.

publish:
docker push ghcr.io/easycrypt/ec-$(VARIANT)-box
docker push ghcr.io/easycrypt/ec-$(VARIANT)-box:$(TAG)