Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1c429782f | ||
|
|
0dcc7bbf76 |
@@ -0,0 +1,14 @@
|
|||||||
|
# CI job image for the Gitea Actions runners.
|
||||||
|
#
|
||||||
|
# JS actions (actions/checkout, docker/build-push-action) execute INSIDE the
|
||||||
|
# job container and need node; builds talk to the runner's daemon through the
|
||||||
|
# mounted /var/run/docker.sock, so this image needs the docker CLI + buildx
|
||||||
|
# but no daemon. Baking them in means jobs never download binaries at runtime:
|
||||||
|
# download.docker.com and github.com releases are unreachable (connection
|
||||||
|
# reset) from the cluster's network.
|
||||||
|
#
|
||||||
|
# Tagged as src.panahifar.ir/ahp/act-job:20 (node 20 / bookworm).
|
||||||
|
FROM node:20-bookworm
|
||||||
|
|
||||||
|
COPY --from=docker:27-cli /usr/local/bin/docker /usr/local/bin/docker
|
||||||
|
COPY --from=docker:27-cli /usr/local/libexec/docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx
|
||||||
@@ -36,21 +36,28 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# The job container (node:20-bookworm) ships no docker CLI, and builds
|
# Builds run docker-outside-of-docker through the runner-mounted
|
||||||
# run against the runner host's daemon (docker-outside-of-docker), so
|
# /var/run/docker.sock. The apollo runner's job image (act-job:20,
|
||||||
# the socket must be mounted by the runner config.
|
# .gitea/job-image) already ships the docker CLI + buildx in system
|
||||||
- name: Set up Docker CLI (not shipped in job container)
|
# plugin paths; runners on other networks fall back to installing them
|
||||||
|
# at runtime (needs access to download.docker.com + github.com, and the
|
||||||
|
# plugin must land where docker looks with DOCKER_CONFIG set).
|
||||||
|
- name: Set up Docker CLI (preinstalled on apollo; install elsewhere)
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
if [ ! -S /var/run/docker.sock ]; then
|
if [ ! -S /var/run/docker.sock ]; then
|
||||||
echo "::error::/var/run/docker.sock is not mounted in the job container - add 'options: -v /var/run/docker.sock:/var/run/docker.sock' and 'valid_volumes: [/var/run/docker.sock]' under 'container:' in the act_runner config.yaml, then restart the runner."
|
echo "::error::/var/run/docker.sock is not mounted in the job container - the act_runner config must mount it (docker_host: \"\" auto-mounts it)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if ! command -v docker >/dev/null 2>&1 || ! docker buildx version >/dev/null 2>&1; then
|
||||||
curl -fsSL "https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz" | tar xz --strip-components=1 -C /usr/local/bin docker/docker
|
curl -fsSL "https://download.docker.com/linux/static/stable/x86_64/docker-27.5.1.tgz" | tar xz --strip-components=1 -C /usr/local/bin docker/docker
|
||||||
mkdir -p /root/.docker/cli-plugins
|
mkdir -p /root/.docker/cli-plugins /usr/local/libexec/docker/cli-plugins
|
||||||
curl -fsSL "https://github.com/docker/buildx/releases/download/v0.19.3/buildx-v0.19.3.linux-amd64" -o /root/.docker/cli-plugins/docker-buildx
|
curl -fsSL "https://github.com/docker/buildx/releases/download/v0.19.3/buildx-v0.19.3.linux-amd64" -o /root/.docker/cli-plugins/docker-buildx
|
||||||
chmod +x /root/.docker/cli-plugins/docker-buildx
|
cp /root/.docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx
|
||||||
|
chmod +x /root/.docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx
|
||||||
|
fi
|
||||||
docker version
|
docker version
|
||||||
|
docker buildx version
|
||||||
|
|
||||||
- name: Login to Gitea container registry
|
- name: Login to Gitea container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ backend:
|
|||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: pargar-backend
|
repository: pargar-backend
|
||||||
tag: 0.3.6
|
tag: 0.3.7
|
||||||
metrics:
|
metrics:
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -41,7 +41,7 @@ frontend:
|
|||||||
image:
|
image:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
repository: pargar-frontend
|
repository: pargar-frontend
|
||||||
tag: 0.3.6
|
tag: 0.3.7
|
||||||
podDisruptionBudget:
|
podDisruptionBudget:
|
||||||
enabled: false
|
enabled: false
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user