Compare commits

...

10 Commits

Author SHA1 Message Date
d1caff6b21 Merge pull request 'ci: fix shell (dash) by removing pipefail' (#46) from fix/ci-sh-no-pipefail into master
Some checks failed
CI / build-and-anchors (push) Failing after 1m21s
Reviewed-on: #46
2026-01-21 14:09:41 +01:00
7e13b1166d ci: fix shell (dash) by removing pipefail
Some checks failed
CI / build-and-anchors (push) Failing after 1m20s
CI / build-and-anchors (pull_request) Failing after 1m1s
2026-01-21 14:09:04 +01:00
0e6e92e327 Merge pull request 'ci: remove apt dependency + force LAN DNS in job container' (#45) from fix/ci-no-apt-dns into master
Some checks failed
CI / build-and-anchors (push) Failing after 24s
Reviewed-on: #45
2026-01-21 13:58:07 +01:00
0f94676b27 ci: remove apt dependency + force LAN DNS in job container
Some checks failed
CI / build-and-anchors (push) Failing after 2m29s
CI / build-and-anchors (pull_request) Failing after 10s
2026-01-21 13:56:13 +01:00
058004e865 Merge pull request 'ci: stabilize DNS for job container (fix apt resolution)' (#44) from fix/ci-dns into master
Some checks failed
CI / build-and-anchors (push) Has been cancelled
Reviewed-on: #44
2026-01-21 13:25:52 +01:00
cc088df702 ci: stabilize DNS for job container (fix apt resolution)
Some checks failed
CI / build-and-anchors (push) Has been cancelled
CI / build-and-anchors (pull_request) Has been cancelled
2026-01-21 13:19:12 +01:00
92b01a43b2 Merge pull request 'ci: checkout without external actions (no github.com)' (#43) from fix/ci-no-external-actions into master
Some checks failed
CI / build-and-anchors (push) Failing after 39m47s
Reviewed-on: #43
2026-01-21 10:34:37 +01:00
01f41432f0 ci: checkout without external actions (no github.com)
Some checks failed
CI / build-and-anchors (push) Failing after 4m28s
CI / build-and-anchors (pull_request) Failing after 4m24s
2026-01-21 10:33:51 +01:00
b6b9855f58 Merge pull request 'feat/m2-apply-ticket-confort' (#42) from feat/m2-apply-ticket-confort into master
Some checks failed
CI / build-and-anchors (push) Failing after 33s
Reviewed-on: #42
2026-01-20 22:01:05 +01:00
1e894e7a1f Merge pull request 'm2: apply-ticket supports --alias and --commit' (#41) from feat/m2-apply-ticket-confort into master
Some checks failed
CI / build-and-anchors (push) Failing after 42s
Reviewed-on: #41
2026-01-20 19:59:41 +01:00

View File

@@ -10,17 +10,44 @@ jobs:
build-and-anchors:
runs-on: ubuntu-latest
container:
image: node:20-bookworm-slim
# Image avec node + git déjà présents -> pas d'APT
image: mcr.microsoft.com/devcontainers/javascript-node:20-bookworm
# On force root pour pouvoir écrire /etc/resolv.conf (sinon user "node")
options: >-
--user root
--add-host gitea.archicratie.trans-hands.synology.me:192.168.1.20
steps:
- name: Install git (needed by checkout)
- name: Force DNS inside job container (DS220+ / act_runner)
run: |
apt-get update
apt-get install -y --no-install-recommends git ca-certificates
git --version
set -eu
echo "== resolv.conf (before) =="; cat /etc/resolv.conf || true
- name: Checkout
uses: actions/checkout@v4
cat > /etc/resolv.conf <<'EOF'
nameserver 192.168.1.1
nameserver 109.0.66.10
options timeout:2 attempts:2
EOF
echo "== resolv.conf (after) =="; cat /etc/resolv.conf
node -e 'require("dns").resolve4("deb.debian.org",(e,a)=>console.log("dns",e||a))'
- name: Checkout (from Gitea, no external actions)
env:
SERVER: ${{ github.server_url }}
REPO: ${{ github.repository }}
SHA: ${{ github.sha }}
TOKEN: ${{ secrets.CI_TOKEN }}
run: |
set -euo pipefail
if [ -n "${TOKEN:-}" ]; then
AUTH="$(printf "oauth2:%s" "$TOKEN" | base64 | tr -d '\n')"
git -c http.extraHeader="AUTHORIZATION: basic $AUTH" clone "$SERVER/$REPO.git" .
else
echo " CI_TOKEN absent → clone sans auth (repo public ou accès runner déjà OK)."
git clone "$SERVER/$REPO.git" .
fi
git checkout "$SHA"
- name: Install deps
run: npm ci