21 Commits

Author SHA1 Message Date
opencodecabilloteu cf980cb6d9 fix: restore test.sh from master (was base64-encoded)
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Successful in 14s
2026-06-12 21:06:59 -04:00
opencodecabilloteu bdd897d21b fix: rewrite cron.yaml with proper YAML
PR Checks / hadolint (pull_request) Successful in 8s
PR Checks / build-test (pull_request) Failing after 13s
2026-06-12 21:01:48 -04:00
opencodecabilloteu 86d7752aab fix: rewrite tag.yaml with proper YAML
PR Checks / hadolint (pull_request) Successful in 10s
PR Checks / build-test (pull_request) Failing after 16s
2026-06-12 21:01:38 -04:00
opencodecabilloteu 03481091f9 fix: rewrite main.yaml with proper YAML
PR Checks / hadolint (pull_request) Successful in 8s
PR Checks / build-test (pull_request) Failing after 14s
2026-06-12 21:01:29 -04:00
cloudix_mcp_server 533348286c fix(ci): rewrite pr.yaml with parallel pattern
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Failing after 14s
2026-06-12 19:38:31 -04:00
cloudix_mcp_server 8c842be375 Sync PR: re-commit test.sh (no change) 2026-06-12 16:23:57 -04:00
cloudix_mcp_server 7bdea78140 Add tag.yaml workflow for tag releases 2026-06-12 16:19:43 -04:00
cloudix_mcp_server 43b7845929 Add pr.yaml workflow for pull request checks 2026-06-12 16:19:37 -04:00
cloudix_mcp_server 9841a6aeaa Add main.yaml workflow for master branch releases 2026-06-12 16:19:31 -04:00
cloudix_mcp_server b6329bdac9 Add cron.yaml workflow for nightly rebuilds 2026-06-12 16:19:28 -04:00
cloudix_mcp_server 1577a5301d Remove old single workflow, split into dedicated CI pipelines 2026-06-12 16:18:45 -04:00
jcabillot 6f5f1579e5 Merge pull request 'ci: add automatic semver tagging on merge to master' (#9) from feat/semver-tag-action into master
Docker Build and Push / lint (push) Failing after 14m51s
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / test (push) Has been skipped
Docker Build and Push / push (push) Failing after 14m52s
Reviewed-on: #9
2026-06-12 13:44:17 -04:00
cloudix_mcp_server 6b628bab39 ci: add automatic semver tagging on merge to master
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Successful in 31s
Docker Build and Push / test (pull_request) Successful in 13s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 13:17:44 -04:00
jcabillot 0667d3c9a1 Merge pull request 'Update alpine Docker tag to v3.24' (#8) from renovate/alpine-3.x into master
Docker Build and Push / lint (push) Successful in 6s
Docker Build and Push / build (push) Successful in 25s
Docker Build and Push / test (push) Successful in 12s
Docker Build and Push / push (push) Successful in 26s
Reviewed-on: #8
2026-06-11 07:22:43 -04:00
renovate 1b61acb1aa Update alpine Docker tag to v3.24
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Successful in 26s
Docker Build and Push / test (pull_request) Successful in 10s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-09 21:06:02 +00:00
jcabillot b33d629fb4 Merge pull request 'Migrate CI to 4-job pipeline with SHA-pinned actions' (#5) from feat/gitea-actions-v2 into master
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 2m33s
Docker Build and Push / test (push) Successful in 11s
Docker Build and Push / push (push) Successful in 29s
Reviewed-on: #5
2026-06-09 08:32:25 -04:00
Sagent d28683e0d0 fix: putty --help exits 1, don't check exit code
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Successful in 35s
Docker Build and Push / test (pull_request) Successful in 23s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-09 12:29:39 +00:00
cloudix_mcp_server 0f7870c1e6 Add hadolint ignore for apk add
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 53s
Docker Build and Push / test (pull_request) Failing after 11s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-08 22:29:45 -04:00
cloudix_mcp_server 81f41e98ca Add smoke test for putty 2026-06-08 22:29:05 -04:00
cloudix_mcp_server 7a89690268 Migrate CI to 4-job pipeline with SHA-pinned actions 2026-06-08 22:28:16 -04:00
jcabillot a384c8c098 feat: add Gitea Actions workflow
Docker Build and Push / build (push) Successful in 41s
feat: add Gitea Actions workflow
2026-05-29 16:20:44 -04:00
7 changed files with 216 additions and 44 deletions
+45
View File
@@ -0,0 +1,45 @@
name: Nightly Rebuild
on:
schedule:
- cron: '0 0 * * *'
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
continue-on-error: true
with:
dockerfile: Dockerfile
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: get-latest-tag
run: |
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "tag=$TAG" >> $GITHUB_OUTPUT
- id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/putty
tags: |
type=raw,value=latest
type=raw,value=${{ steps.get-latest-tag.outputs.tag }},enable=${{ steps.get-latest-tag.outputs.tag != '' }}
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
-43
View File
@@ -1,43 +0,0 @@
name: Docker Build and Push
on:
pull_request:
branches: [master]
push:
branches: [master]
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v6
with:
images: jcabillot/putty
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
+63
View File
@@ -0,0 +1,63 @@
name: Main Release
on:
push:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
continue-on-error: true
with:
dockerfile: Dockerfile
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/putty
tags: |
type=raw,value=latest
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} .
- run: bash tests/test.sh ci-image:${{ github.sha }}
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- name: Configure git auth
run: |
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@scm.cabillot.eu/perso/putty.git"
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: master
WITH_V: true
GIT_API_TAGGING: false
+23
View File
@@ -0,0 +1,23 @@
name: PR Checks
on:
pull_request:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
continue-on-error: true
with:
dockerfile: Dockerfile
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} .
- run: bash tests/test.sh ci-image:${{ github.sha }}
+38
View File
@@ -0,0 +1,38 @@
name: Tag Release
on:
push:
tags: ['*']
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
continue-on-error: true
with:
dockerfile: Dockerfile
build-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/putty
tags: |
type=ref,event=tag
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
+2 -1
View File
@@ -1,4 +1,5 @@
FROM alpine:3.23
FROM alpine:3.24
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
# hadolint ignore=DL3018
RUN apk add --no-cache putty
+45
View File
@@ -0,0 +1,45 @@
#!/bin/bash
set -euo pipefail
IMAGE="$1"
FAILED=0
PASSED=0
assert_eq() {
local desc="$1" expected="$2" actual="$3"
if [ "$expected" = "$actual" ]; then
echo "PASS: $desc"
PASSED=$((PASSED + 1))
else
echo "FAIL: $desc (expected $expected, got $actual)"
FAILED=$((FAILED + 1))
fi
}
TMPDIR="$(mktemp -d)"
trap 'rm -rf "$TMPDIR"' EXIT
docker run --rm "$IMAGE" putty --help > "$TMPDIR/output" 2>&1 || true
if [ -s "$TMPDIR/output" ]; then
echo "PASS: putty --help produces output"
PASSED=$((PASSED + 1))
else
echo "FAIL: putty --help produces no output"
FAILED=$((FAILED + 1))
fi
docker run --rm "$IMAGE" puttygen --version > "$TMPDIR/output" 2>&1
if grep -qiE "putty|release|version" "$TMPDIR/output"; then
echo "PASS: puttygen produces recognizable output"
PASSED=$((PASSED + 1))
else
echo "FAIL: puttygen output unrecognized"
FAILED=$((FAILED + 1))
fi
echo ""
echo "$PASSED/$((PASSED + FAILED)) tests passed"
if [ "$FAILED" -gt 0 ]; then
exit 1
fi