Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
vitoyucepi authored Aug 6, 2024
1 parent 4f7b83e commit fb40866
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@ name: CI
on:
- push
jobs:
ubuntu_wget_opam:
strategy:
matrix:
opam_version:
- "2.1.6"
- "2.2.0"
ocaml_version:
- "4.14.2"
- "5.2.0"
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
context: "./ubuntu_wget_opam"
build-args: |
OPAM_VERSION=${{ matrix.opam_version }}
OCAML_VERSION=${{ matrix.ocaml_version }}
alpine_wget_opam:
strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions alpine_repos_opam/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ FROM alpine:3.20

ARG OCAML_VERSION

RUN apk add --no-cache gcc g++ make opam
RUN apk add --no-cache alpine-sdk wget ca-certificates opam

RUN set -eux; \
opam init --no-setup --disable-sandboxing --compiler ocaml-base-compiler."$OCAML_VERSION";

RUN set -eux; \
apk add --no-cache pkgconf bash ffmpeg-dev gmp-dev; \
apk add --no-cache bash ffmpeg-dev gmp-dev; \
opam install --yes prometheus-app ffmpeg;
4 changes: 2 additions & 2 deletions alpine_wget_opam/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ FROM alpine:3.20
ARG OPAM_VERSION
ARG OCAML_VERSION

RUN apk add --no-cache gcc g++ make patch wget ca-certificates
RUN apk add --no-cache alpine-sdk wget ca-certificates

RUN set -eux; \
wget -O /usr/local/bin/opam --progress=dot:giga "https://github.com/ocaml/opam/releases/download/$OPAM_VERSION/opam-$OPAM_VERSION-x86_64-linux"; \
chmod +x /usr/local/bin/opam; \
opam init --no-setup --disable-sandboxing --compiler ocaml-base-compiler."$OCAML_VERSION";

RUN set -eux; \
apk add --no-cache pkgconf bash ffmpeg-dev gmp-dev; \
apk add --no-cache bash ffmpeg-dev gmp-dev; \
opam install --yes prometheus-app ffmpeg;
16 changes: 16 additions & 0 deletions ubuntu_wget_opam/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:24.04

ARG OPAM_VERSION
ARG OCAML_VERSION

RUN set -eux; \
apt-get update; \
apt-get install gcc g++ make patch;

RUN set -eux; \
wget -O /usr/local/bin/opam --progress=dot:giga "https://github.com/ocaml/opam/releases/download/$OPAM_VERSION/opam-$OPAM_VERSION-x86_64-linux"; \
chmod +x /usr/local/bin/opam; \
opam init --no-setup --disable-sandboxing --compiler ocaml-base-compiler."$OCAML_VERSION";

RUN set -eux; \
opam install --yes prometheus-app ffmpeg;

0 comments on commit fb40866

Please # to comment.