Skip to content

Commit a85804f

Browse files
committed
Re-order, create GH actions
1 parent 59f6097 commit a85804f

File tree

14 files changed

+280
-17
lines changed

14 files changed

+280
-17
lines changed

.github/workflows/base.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: build base
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 1"
6+
push:
7+
branches:
8+
- master
9+
paths:
10+
- base/**
11+
- scripts/ampstart.sh
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
jobs:
17+
push:
18+
if: ${{ github.repository_owner == 'CubeCoders' }}
19+
name: "amp:${{ matrix.base }}"
20+
runs-on: ubuntu-latest
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
base:
25+
- debian
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: docker/setup-qemu-action@v3
29+
- uses: docker/setup-buildx-action@v3
30+
- uses: docker/login-action@v3
31+
with:
32+
registry: ghcr.io
33+
username: cubecoders
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
- uses: docker/build-push-action@v6
36+
with:
37+
context: .
38+
file: ./base/${{ matrix.base }}/Dockerfile
39+
platforms: linux/amd64,linux/arm64/v8
40+
push: true
41+
tags: |
42+
ghcr.io/cubecoders/amp:${{ matrix.base }}
43+
cache-from: type=gha
44+
cache-to: type=gha,mode=max
45+
provenance: mode=max
46+
sbom: true
47+
48+
concurrency:
49+
group: ${{ github.workflow }}-${{ github.ref }}
50+
cancel-in-progress: false

.github/workflows/java.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build java
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 1"
6+
push:
7+
branches:
8+
- master
9+
paths:
10+
- base/debian/**
11+
- java/**
12+
- scripts/ampstart.sh
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
jobs:
18+
push:
19+
if: ${{ github.repository_owner == 'CubeCoders' }}
20+
name: "amp:java-${{ matrix.java }}"
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
java:
26+
- lts
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: docker/setup-qemu-action@v3
30+
- uses: docker/setup-buildx-action@v3
31+
- uses: docker/login-action@v3
32+
with:
33+
registry: ghcr.io
34+
username: cubecoders
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
- uses: docker/build-push-action@v6
37+
with:
38+
context: .
39+
file: ./java/${{ matrix.java }}/Dockerfile
40+
platforms: linux/amd64,linux/arm64/v8
41+
push: true
42+
tags: |
43+
ghcr.io/cubecoders/amp:java-${{ matrix.java }}
44+
cache-from: type=gha
45+
cache-to: type=gha,mode=max
46+
provenance: mode=max
47+
sbom: true
48+
49+
concurrency:
50+
group: ${{ github.workflow }}-${{ github.ref }}
51+
cancel-in-progress: false

.github/workflows/mono.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build mono
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 1"
6+
push:
7+
branches:
8+
- master
9+
paths:
10+
- base/debian/**
11+
- mono/**
12+
- scripts/ampstart.sh
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
jobs:
18+
push:
19+
if: ${{ github.repository_owner == 'CubeCoders' }}
20+
name: "amp:mono-${{ matrix.mono }}"
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
mono:
26+
- latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: docker/setup-qemu-action@v3
30+
- uses: docker/setup-buildx-action@v3
31+
- uses: docker/login-action@v3
32+
with:
33+
registry: ghcr.io
34+
username: cubecoders
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
- uses: docker/build-push-action@v6
37+
with:
38+
context: .
39+
file: ./mono/${{ matrix.mono }}/Dockerfile
40+
platforms: linux/amd64,linux/arm64/v8
41+
push: true
42+
tags: |
43+
ghcr.io/cubecoders/amp:mono-${{ matrix.mono }}
44+
cache-from: type=gha
45+
cache-to: type=gha,mode=max
46+
provenance: mode=max
47+
sbom: true
48+
49+
concurrency:
50+
group: ${{ github.workflow }}-${{ github.ref }}
51+
cancel-in-progress: false

.github/workflows/python.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build python
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 1"
6+
push:
7+
branches:
8+
- master
9+
paths:
10+
- base/debian/**
11+
- python/**
12+
- scripts/ampstart.sh
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
jobs:
18+
push:
19+
if: ${{ github.repository_owner == 'CubeCoders' }}
20+
name: "amp:python-${{ matrix.python }}"
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
python:
26+
- "3"
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: docker/setup-qemu-action@v3
30+
- uses: docker/setup-buildx-action@v3
31+
- uses: docker/login-action@v3
32+
with:
33+
registry: ghcr.io
34+
username: cubecoders
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
- uses: docker/build-push-action@v6
37+
with:
38+
context: .
39+
file: ./python/${{ matrix.python }}/Dockerfile
40+
platforms: linux/amd64,linux/arm64/v8
41+
push: true
42+
tags: |
43+
ghcr.io/cubecoders/amp:python-${{ matrix.python }}
44+
cache-from: type=gha
45+
cache-to: type=gha,mode=max
46+
provenance: mode=max
47+
sbom: true
48+
49+
concurrency:
50+
group: ${{ github.workflow }}-${{ github.ref }}
51+
cancel-in-progress: false

.github/workflows/wine.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build mono
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * 1"
6+
push:
7+
branches:
8+
- master
9+
paths:
10+
- base/debian/**
11+
- mono/**
12+
- scripts/ampstart.sh
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
jobs:
18+
push:
19+
if: ${{ github.repository_owner == 'CubeCoders' }}
20+
name: "amp:${{ matrix.mono }}"
21+
runs-on: ubuntu-latest
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
mono:
26+
- latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: docker/setup-qemu-action@v3
30+
- uses: docker/setup-buildx-action@v3
31+
- uses: docker/login-action@v3
32+
with:
33+
registry: ghcr.io
34+
username: cubecoders
35+
password: ${{ secrets.GITHUB_TOKEN }}
36+
- uses: docker/build-push-action@v6
37+
with:
38+
context: .
39+
file: ./mono/${{ matrix.mono }}/Dockerfile
40+
platforms: linux/amd64,linux/arm64/v8
41+
push: true
42+
tags: |
43+
ghcr.io/cubecoders/amp:${{ matrix.mono }}
44+
cache-from: type=gha
45+
cache-to: type=gha,mode=max
46+
provenance: mode=max
47+
sbom: true
48+
49+
concurrency:
50+
group: ${{ github.workflow }}-${{ github.ref }}
51+
cancel-in-progress: false

base/Dockerfile renamed to base/debian/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Base image for AMP containers
1+
# Base Debian 12 image for AMP containers
2+
# ghcr.io/cubecoders/amp:debian
23

34
FROM --platform=$TARGETPLATFORM debian:bookworm-slim
45

@@ -40,7 +41,7 @@ RUN mkdir -p /usr/share/man/man1 && \
4041
RUN case "$TARGETARCH" in \
4142
amd64) wget -qO libssl1.1.deb https://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb ;; \
4243
arm64) wget -qO libssl1.1.deb https://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb ;; \
43-
esac &&\
44+
esac && \
4445
apt-get update && \
4546
apt-get install -y --no-install-recommends ./libssl1.1.deb && \
4647
rm libssl1.1.deb && \

java/Dockerfile renamed to java/lts/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Java image including all Temurin LTS versions
1+
# Java image for AMP containers including all Temurin LTS versions
2+
# ghcr.io/cubecoders/amp:java-lts
23

34
FROM --platform=$TARGETPLATFORM cubecoders/ampbase:latest
45

mono/Dockerfile renamed to mono/latest/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Mono image
1+
# Mono image for AMP containers
2+
# ghcr.io/cubecoders/amp:mono
23

3-
FROM --platform=$TARGETPLATFORM ghcr.io/cubecoders/ampbase:latest
4+
FROM --platform=$TARGETPLATFORM ghcr.io/cubecoders/amp:debian
45

56
LABEL org.opencontainers.image.licenses=MIT
67

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Python image for Python 3.10, 3.11 and 3.12
1+
# Python image for AMP containers including Python 3.10, 3.11 and 3.12
2+
# ghcr.io/cubecoders/amp:python-3
23

34
FROM --platform=$TARGETPLATFORM python:3.10-slim-bookworm AS py310
45
FROM --platform=$TARGETPLATFORM python:3.12-slim-bookworm AS py312
56

6-
FROM --platform=$TARGETPLATFORM ghcr.io/cubecoders/ampbase:latest
7+
FROM --platform=$TARGETPLATFORM ghcr.io/cubecoders/amp:debian
78
LABEL org.opencontainers.image.licenses=MIT
89

910
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Wine image based on Wine 10 stable
1+
# Wine image for AMP containers based on Wine 10 stable
2+
# ghcr.io/cubecoders/amp:wine-10-stable
23

3-
FROM ghcr.io/cubecoders/ampbase:latest
4+
FROM ghcr.io/cubecoders/amp:debian
45

56
LABEL org.opencontainers.image.licenses=MIT
67

0 commit comments

Comments
 (0)