Compare commits

...
Sign in to create a new pull request.

5 commits

3 changed files with 25 additions and 2 deletions

View file

@ -45,6 +45,8 @@ jobs:
HOSTNAME="${SERVER_URL#https://}"
echo "Hostname: HOSTNAME"
echo "DOCKER_REGISTRY_HOST=$HOSTNAME" >> "$GITHUB_ENV"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Forgejo Registry
uses: docker/login-action@v3
with:
@ -54,6 +56,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: ./images/${{ matrix.images.name }}/${{ matrix.images.tag }}
push: true
tags: ${{ env.DOCKER_REGISTRY_HOST }}/${{ github.repository_owner }}/${{ matrix.images.name }}:${{ matrix.images.tag }}

View file

@ -8,4 +8,7 @@ https://git.martin-riedl.de/ci/-/packages/container/ubuntu/24.04
- ca-certificates
- curl
- docker-ce-cli
- docker-buildx-plugin
- git
- nodejs 22

View file

@ -2,10 +2,27 @@ FROM ubuntu:24.04
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
# install basis tools
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates git && \
rm -rf /var/lib/apt/lists/*
# install nodejs
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get install -y --no-install-recommends nodejs && \
rm -rf /var/lib/apt/lists/* && \
node -v
# install docker client
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
RUN install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \
chmod a+r /etc/apt/keyrings/docker.asc && \
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null && \
apt-get update && apt-get install -y --no-install-recommends docker-ce-cli docker-buildx-plugin && \
rm -rf /var/lib/apt/lists/* && \
docker -v