Skip to content

Commit

Permalink
feat: Switch to single-switch images
Browse files Browse the repository at this point in the history
Close #4
  • Loading branch information
erikmd committed Dec 6, 2020
1 parent 91b496d commit d7178c4
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 98 deletions.
1 change: 0 additions & 1 deletion coq/beta/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO later: Use coqorg/base:4.05.0
ARG BASE_TAG="latest"
FROM coqorg/base:${BASE_TAG}

Expand Down
1 change: 0 additions & 1 deletion coq/dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO later: Use coqorg/base:4.05.0
ARG BASE_TAG="latest"
FROM coqorg/base:${BASE_TAG}

Expand Down
1 change: 0 additions & 1 deletion coq/dual/beta/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO later: Use coqorg/base:4.05.0
ARG BASE_TAG="latest"
FROM coqorg/base:${BASE_TAG}

Expand Down
1 change: 0 additions & 1 deletion coq/dual/dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO later: Use coqorg/base:4.05.0
ARG BASE_TAG="latest"
FROM coqorg/base:${BASE_TAG}

Expand Down
1 change: 0 additions & 1 deletion coq/dual/stable/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO later: Use coqorg/base:4.05.0
ARG BASE_TAG="latest"
FROM coqorg/base:${BASE_TAG}

Expand Down
1 change: 0 additions & 1 deletion coq/stable/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# TODO later: Use coqorg/base:4.05.0
ARG BASE_TAG="latest"
FROM coqorg/base:${BASE_TAG}

Expand Down
149 changes: 57 additions & 92 deletions images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,8 @@ args:
BUILD_DATE: '{defaults[build_date]}'
images:
- matrix:
# TODO: replace latest with 2 images (single-switch), merge tags
base: ['latest']
coq: ['dev']
build:
keywords:
- 'dev'
context: './coq'
dockerfile: './dual/dev/Dockerfile'
commit_api:
fetcher: 'github'
repo: 'coq/coq'
branch: 'master'
args:
BASE_TAG: '{matrix[base]}'
COQ_VERSION: '{matrix[coq]}'
COQ_COMMIT: '{defaults[commit]}'
VCS_REF: '{defaults[commit][0:7]}'
COQ_EXTRA_OPAM: 'coq-bignums'
tags:
- tag: '{matrix[coq]}'
if: '{matrix[base]} == "latest"'
# TODO: remove all occurrences of 'coqorg/base:latest'
- matrix:
base: ['4.09.1-flambda']
minimal: ['4.05.0']
base: ['4.05.0', '4.07.1-flambda', '4.09.1-flambda']
coq: ['dev']
build:
keywords:
Expand All @@ -47,91 +25,85 @@ images:
VCS_REF: '{defaults[commit][0:7]}'
COQ_EXTRA_OPAM: 'coq-bignums'
tags:
- tag: '{matrix[coq]}'
if: '{matrix[base]} == {matrix[minimal]}'
- tag: '{matrix[coq]}-ocaml-{matrix[base]}'
if: '{matrix[base]} != "latest"'
if: '{matrix[base]} != {matrix[minimal]}'
- tag: '{matrix[coq]}-ocaml-{matrix[base][%.*-*]}-flambda'
if: '{matrix[base]} != "latest"'
# TODO/FIXME: Update later on
if: '{matrix[base]} != {matrix[minimal]}'
# TODO: Uncomment when the v8.14 branch is created
# - matrix:
# base: ['latest', '4.09.1-flambda']
# minimal: ['4.05.0']
# base: ['4.05.0', '4.07.1-flambda', '4.09.1-flambda']
# # TODO: Update when appropriate
# coq: ['8.14-alpha']
# build:
# keywords:
# - '{matrix[coq][%-*]}'
# context: './coq'
# dockerfile: './dev/Dockerfile'
# # TODO: Remove this commit_api section when the beta is released
# commit_api:
# fetcher: 'github'
# repo: 'coq/coq'
# branch: 'v8.14'
# context: './coq'
# # TODO: Replace with "beta/Dockerfile" when the beta is released
# dockerfile: './dev/Dockerfile'
# keywords:
# - '{matrix[coq][%-*]}'
# args:
# BASE_TAG: '{matrix[base]}'
# # TODO: Replace with '{matrix[coq]}' when the beta is released
# COQ_VERSION: '{matrix[coq][%-*]}.dev'
# COQ_COMMIT: '{defaults[commit]}'
# # TODO: Replace with 'V{matrix[coq][//-/+]}' when the beta is released
# VCS_REF: '{defaults[commit][0:7]}'
# COQ_EXTRA_OPAM: 'coq-bignums'
# tags:
# - tag: '{matrix[coq]}'
# if: '{matrix[base]} == "latest"'
# - tag: '{matrix[coq][%-*]}'
# if: '{matrix[base]} == "latest"'
# if: '{matrix[base]} == {matrix[minimal]}'
# - tag: '{matrix[coq]}-ocaml-{matrix[base]}'
# if: '{matrix[base]} != "latest"'
# if: '{matrix[base]} != {matrix[minimal]}'
# - tag: '{matrix[coq][%-*]}-ocaml-{matrix[base][%.*-*]}-flambda'
# if: '{matrix[base]} != "latest"'
# if: '{matrix[base]} != {matrix[minimal]}'
- matrix:
base: ['latest']
minimal: ['4.05.0']
base: ['4.05.0', '4.07.1-flambda', '4.09.1-flambda']
# TODO: Update when appropriate
coq: ['8.13-alpha']
build:
keywords:
- '8.13'
context: './coq'
dockerfile: './dual/dev/Dockerfile'
# TODO: Remove this commit_api section when the beta is released
commit_api:
fetcher: 'github'
repo: 'coq/coq'
branch: 'v8.13'
args:
BASE_TAG: '{matrix[base]}'
COQ_VERSION: '{matrix[coq][%-*]}.dev'
COQ_COMMIT: '{defaults[commit]}'
VCS_REF: '{defaults[commit][0:7]}'
COQ_EXTRA_OPAM: 'coq-bignums'
tags:
- tag: '{matrix[coq]}'
if: '{matrix[base]} == "latest"'
- tag: '{matrix[coq][%-*]}'
if: '{matrix[base]} == "latest"'
- matrix:
base: ['4.09.1-flambda']
coq: ['8.13-alpha']
build:
keywords:
- '8.13'
context: './coq'
# TODO: Replace with "beta/Dockerfile" when the beta is released
dockerfile: './dev/Dockerfile'
commit_api:
fetcher: 'github'
repo: 'coq/coq'
branch: 'v8.13'
keywords:
- '8.13'
args:
BASE_TAG: '{matrix[base]}'
# TODO: Replace with '{matrix[coq]}' when the beta is released
COQ_VERSION: '{matrix[coq][%-*]}.dev'
COQ_COMMIT: '{defaults[commit]}'
# TODO: Replace with 'V{matrix[coq][//-/+]}' when the beta is released
VCS_REF: '{defaults[commit][0:7]}'
COQ_EXTRA_OPAM: 'coq-bignums'
tags:
- tag: '{matrix[coq]}'
if: '{matrix[base]} == {matrix[minimal]}'
- tag: '{matrix[coq][%-*]}'
if: '{matrix[base]} == {matrix[minimal]}'
- tag: '{matrix[coq]}-ocaml-{matrix[base]}'
if: '{matrix[base]} != "latest"'
if: '{matrix[base]} != {matrix[minimal]}'
- tag: '{matrix[coq][%-*]}-ocaml-{matrix[base][%.*-*]}-flambda'
if: '{matrix[base]} != "latest"'
if: '{matrix[base]} != {matrix[minimal]}'
- matrix:
# TODO: replace latest with 2 images (single-switch), merge tags
base: ['latest']
minimal: ['4.05.0']
base: ['4.05.0', '4.07.1-flambda', '4.09.1-flambda']
coq: ['8.12.1', '8.11.2', '8.10.2', '8.9.1', '8.8.2']
coq_latest: ['8.12.1']
build:
context: './coq'
dockerfile: './dual/stable/Dockerfile'
dockerfile: './stable/Dockerfile'
args:
BASE_TAG: '{matrix[base]}'
COQ_VERSION: '{matrix[coq]}'
Expand All @@ -140,48 +112,41 @@ images:
tags:
- tag: 'latest'
if:
# TODO: Bump this version too:
- '{matrix[coq]} == "8.12.1"'
- '{matrix[base]} == "latest"'
- '{matrix[coq]} == {matrix[coq_latest]}'
- '{matrix[base]} == {matrix[minimal]}'
- tag: '{matrix[coq]}'
if: '{matrix[base]} == "latest"'
if: '{matrix[base]} == {matrix[minimal]}'
- tag: '{matrix[coq][%.*]}'
if: '{matrix[base]} == "latest"'
- matrix:
base: ['4.09.1-flambda']
coq: ['8.12.1', '8.11.2', '8.10.2', '8.9.1', '8.8.2']
build:
context: './coq'
dockerfile: './stable/Dockerfile'
args:
BASE_TAG: '{matrix[base]}'
COQ_VERSION: '{matrix[coq]}'
VCS_REF: 'V{matrix[coq]}'
COQ_EXTRA_OPAM: 'coq-bignums'
tags:
if: '{matrix[base]} == {matrix[minimal]}'
- tag: 'latest-ocaml-{matrix[base][%.*-*]}-flambda'
if:
# TODO: Bump this version too:
- '{matrix[coq]} == "8.12.1"'
- '{matrix[base]} != "latest"'
- '{matrix[coq]} == {matrix[coq_latest]}'
- '{matrix[base]} != {matrix[minimal]}'
- tag: '{matrix[coq]}-ocaml-{matrix[base]}'
if: '{matrix[base]} != "latest"'
if: '{matrix[base]} != {matrix[minimal]}'
- tag: '{matrix[coq][%.*]}-ocaml-{matrix[base][%.*-*]}-flambda'
if: '{matrix[base]} != "latest"'
if: '{matrix[base]} != {matrix[minimal]}'
- matrix:
base: ['latest']
minimal: ['4.05.0']
base: ['4.05.0', '4.07.1-flambda']
coq: ['8.7.2']
build:
context: './coq'
dockerfile: './dual/stable/Dockerfile'
dockerfile: './stable/Dockerfile'
args:
BASE_TAG: '{matrix[base]}'
COQ_VERSION: '{matrix[coq]}'
VCS_REF: 'V{matrix[coq]}'
COQ_EXTRA_OPAM: 'coq-bignums'
tags:
- tag: '{matrix[coq]}'
if: '{matrix[base]} == {matrix[minimal]}'
- tag: '{matrix[coq][%.*]}'
if: '{matrix[base]} == {matrix[minimal]}'
- tag: '{matrix[coq]}-ocaml-{matrix[base]}'
if: '{matrix[base]} != {matrix[minimal]}'
- tag: '{matrix[coq][%.*]}-ocaml-{matrix[base][%.*-*]}-flambda'
if: '{matrix[base]} != {matrix[minimal]}'
- matrix:
base: ['4.02.3']
coq: ['8.6.1']
Expand Down

0 comments on commit d7178c4

Please sign in to comment.