Compare commits
5 commits
renovate/c
...
main
Author | SHA1 | Date | |
---|---|---|---|
65b367f185 | |||
30accc0e29 | |||
518378b5c6 | |||
7aa4e233a2 | |||
64ff7bf2e6 |
3 changed files with 25 additions and 2 deletions
|
@ -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 }}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue