23 Commits

Author SHA1 Message Date
jcabillot a9de886d87 Merge pull request 'feat: standardize to 4-workflow Gitea Actions pattern' (#8) from fix/workflow-standard into master
Docker Build and Push / lint (push) Successful in 7s
Main Release / hadolint (push) Successful in 10s
Main Release / test (push) Successful in 14s
Docker Build and Push / build (push) Successful in 24s
Main Release / build (push) Successful in 11s
Docker Build and Push / test (push) Successful in 12s
Main Release / tag (push) Successful in 9s
Tag Release / hadolint (push) Successful in 6s
Tag Release / test (push) Successful in 14s
Docker Build and Push / push (push) Successful in 21s
Tag Release / build-push (push) Successful in 49s
Reviewed-on: #8
2026-06-13 22:49:25 -04:00
cloudix_mcp_server 8cdb21f8a0 fix: rewrite pr.yaml with raw YAML (was base64)
Docker Build and Push / lint (pull_request) Successful in 7s
PR Checks / hadolint (pull_request) Successful in 9s
PR Checks / build-test (pull_request) Successful in 17s
Docker Build and Push / build (pull_request) Successful in 29s
Docker Build and Push / test (pull_request) Successful in 15s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-13 22:18:10 -04:00
cloudix_mcp_server e1a118330f fix: rewrite tag.yaml with raw YAML (was base64)
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Successful in 27s
Docker Build and Push / test (pull_request) Successful in 17s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-13 22:18:06 -04:00
cloudix_mcp_server 81ae68665e fix: rewrite cron.yaml with raw YAML (was base64)
Docker Build and Push / lint (pull_request) Successful in 13s
Docker Build and Push / build (pull_request) Successful in 22s
Docker Build and Push / test (pull_request) Successful in 21s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-13 22:17:59 -04:00
cloudix_mcp_server b3dd86d8c7 fix: rewrite main.yaml with raw YAML (was base64)
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Successful in 49s
Docker Build and Push / test (pull_request) Successful in 16s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-13 22:17:38 -04:00
cloudix_mcp_server 9285a974a4 feat: add pr.yaml workflow - pull request checks only
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 49s
Docker Build and Push / test (pull_request) Successful in 12s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-13 17:41:29 -04:00
cloudix_mcp_server b344d47d30 feat: add tag.yaml workflow - tag push build 2026-06-13 17:41:27 -04:00
cloudix_mcp_server e31c576ff3 feat: add cron.yaml workflow - nightly scheduled build 2026-06-13 17:41:23 -04:00
cloudix_mcp_server b225b3cdd0 feat: add main.yaml workflow - push to release branches 2026-06-13 17:41:20 -04:00
jcabillot bc1e7dcada Merge pull request 'Update hadolint/hadolint-action digest to 2332a7b' (#7) from renovate/hadolint-hadolint-action-digest into master
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 23s
Docker Build and Push / test (push) Successful in 11s
Docker Build and Push / push (push) Failing after 23s
Reviewed-on: #7
2026-06-12 13:56:35 -04:00
renovate 5a4e6d9260 Update hadolint/hadolint-action digest to 2332a7b
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 42s
Docker Build and Push / test (pull_request) Successful in 15s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 17:50:40 +00:00
jcabillot 2e64ab6df8 Merge pull request 'ci: add automatic semver tagging on merge to master' (#6) from feat/semver-tag-action into master
Docker Build and Push / lint (push) Successful in 8s
Docker Build and Push / build (push) Successful in 45s
Docker Build and Push / test (push) Successful in 12s
Docker Build and Push / push (push) Failing after 24s
Reviewed-on: #6
2026-06-12 13:43:52 -04:00
cloudix_mcp_server 7ea61040f2 ci: add automatic semver tagging on merge to master
Docker Build and Push / lint (pull_request) Successful in 15s
Docker Build and Push / build (pull_request) Successful in 52s
Docker Build and Push / test (pull_request) Successful in 18s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 13:18:57 -04:00
jcabillot f37556dde7 Merge pull request 'Update python Docker tag to v3.14' (#5) from renovate/python-3.x into master
Docker Build and Push / lint (push) Successful in 6s
Docker Build and Push / build (push) Successful in 34s
Docker Build and Push / test (push) Successful in 18s
Docker Build and Push / push (push) Successful in 22s
Reviewed-on: #5
2026-06-11 08:16:21 -04:00
renovate 0c46756898 Update python Docker tag to v3.14
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 32s
Docker Build and Push / test (pull_request) Successful in 9s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-09 16:19:33 +00:00
jcabillot 95bbb0c2d2 Merge pull request 'chore: fix Dockerfile FROM quotes, python image lookup, gitlabci' (#3) from chore/renovate into master
Docker Build and Push / lint (push) Successful in 6s
Docker Build and Push / build (push) Successful in 46s
Docker Build and Push / test (push) Successful in 14s
Docker Build and Push / push (push) Successful in 24s
Reviewed-on: #3
2026-06-09 11:56:39 -04:00
Sagent defcd3cf5c chore: remove renovate.json, gitlabci disabled globally, packageRules were no-op. Keep Dockerfile+gitlabci quote fixes.
Docker Build and Push / build (pull_request) Successful in 41s
2026-06-09 15:55:27 +00:00
jcabillot a8bc293e6b Merge pull request 'Migrate CI to 4-job pipeline with SHA-pinned actions' (#4) from feat/gitea-actions-v2 into master
Docker Build and Push / lint (push) Successful in 9s
Docker Build and Push / build (push) Successful in 43s
Docker Build and Push / test (push) Successful in 10s
Docker Build and Push / push (push) Successful in 22s
Reviewed-on: #4
2026-06-09 08:34:16 -04:00
cloudix_mcp_server 58597d5d53 Add hadolint ignore for apk add and pip install
Docker Build and Push / lint (pull_request) Successful in 9s
Docker Build and Push / build (pull_request) Successful in 1m4s
Docker Build and Push / test (pull_request) Successful in 13s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-08 22:29:43 -04:00
cloudix_mcp_server 0a910ce903 Add smoke test for troposphere 2026-06-08 22:28:57 -04:00
cloudix_mcp_server cf2daa42e0 Migrate CI to 4-job pipeline with SHA-pinned actions 2026-06-08 22:28:04 -04:00
Sagent 9ce55def15 chore: fix Dockerfile FROM quotes, gitlabci image quotes, add python image lookup fix
Docker Build and Push / build (pull_request) Successful in 53s
2026-06-09 02:17:23 +00:00
jcabillot 4da13e2357 feat: add Gitea Actions workflow
Docker Build and Push / build (push) Successful in 55s
feat: add Gitea Actions workflow
2026-05-29 16:22:30 -04:00
8 changed files with 259 additions and 35 deletions
+49
View File
@@ -0,0 +1,49 @@
name: Nightly Rebuild
on:
schedule:
- cron: '30 3 * * 3'
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
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 }}
build-push:
needs: [test]
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/troposphere
tags: |
type=raw,value=${{ steps.get-latest-tag.outputs.tag }}-latest,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
+62 -32
View File
@@ -1,46 +1,76 @@
name: Docker Build and Push name: Docker Build and Push
on: on:
pull_request:
branches: [master]
push: push:
branches: [master] branches: [master, main]
pull_request:
schedule: schedule:
- cron: '0 0 * * *' - cron: '30 3 * * 3'
jobs: jobs:
build: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
uses: actions/checkout@v6 - uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
failure-threshold: error
- name: Set up Docker Buildx build:
uses: docker/setup-buildx-action@v4 runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Build image
run: docker build -t ci-image:${{ github.sha }} .
- name: Save image
run: docker save ci-image:${{ github.sha }} -o image.tar
- uses: ChristopherHX/gitea-upload-artifact@62ac910c5d3dfa85c7cb2df15afe2e342b2407c2 # main
with:
name: docker-image
path: image.tar
- name: Login to Docker Hub test:
if: github.event_name != 'pull_request' runs-on: ubuntu-latest
uses: docker/login-action@v4 needs: build
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: ChristopherHX/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # main
with:
name: docker-image
- name: Load image
run: docker load < image.tar
- name: Run tests
run: bash tests/test.sh ci-image:${{ github.sha }}
push:
runs-on: ubuntu-latest
needs: test
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
- uses: ChristopherHX/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # main
with:
name: docker-image
- name: Load image
run: docker load < image.tar
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Tag and push
- name: Docker metadata run: |
id: meta docker tag ci-image:${{ github.sha }} jcabillot/troposphere:latest
uses: docker/metadata-action@v6 docker push jcabillot/troposphere:latest
with: - name: Bump version and push tag
images: jcabillot/troposphere if: github.event_name == 'push'
tags: | uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
#type=ref,event=branch env:
#type=ref,event=pr GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#type=sha DEFAULT_BUMP: patch
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }} RELEASE_BRANCHES: master
WITH_V: true
- name: Build and push GIT_API_TAGGING: false
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
+44
View File
@@ -0,0 +1,44 @@
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
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 }}
build:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t jcabillot/troposphere:${{ github.sha }} .
tag:
needs: [build]
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.SA_TOKEN_ACTION_PUSH_TAGS }}@scm.cabillot.eu/perso/troposphere.git"
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: master
WITH_V: true
GIT_API_TAGGING: false
+20
View File
@@ -0,0 +1,20 @@
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 }}
+44
View File
@@ -0,0 +1,44 @@
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
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 }}
build-push:
needs: [test]
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/troposphere
tags: |
type=ref,event=tag
type=ref,event=tag,suffix=-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
+1 -1
View File
@@ -1,4 +1,4 @@
image: "docker:latest" image: docker:latest
services: services:
- "docker:dind" - "docker:dind"
+2 -2
View File
@@ -1,13 +1,13 @@
FROM "python:3.7-alpine" FROM python:3.14-alpine
ARG BUILD_DATE ARG BUILD_DATE
ARG VCS_REF ARG VCS_REF
ARG VERSION ARG VERSION
# hadolint ignore=DL3018,DL3013
RUN apk --no-cache add --virtual build-dependencies build-base && \ RUN apk --no-cache add --virtual build-dependencies build-base && \
pip install --no-cache-dir troposphere && \ pip install --no-cache-dir troposphere && \
apk --no-cache del build-dependencies apk --no-cache del build-dependencies
# TODO : vérifier les labels # TODO : vérifier les labels
LABEL "maintainer"="dockerimages@cabillot.eu" \ LABEL "maintainer"="dockerimages@cabillot.eu" \
"org.label-schema.name"="troposphere" \ "org.label-schema.name"="troposphere" \
+37
View File
@@ -0,0 +1,37 @@
#!/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" python -c "import troposphere; print(troposphere.__version__)" > "$TMPDIR/output" 2>&1 && RC=0 || RC=$?
assert_eq "import troposphere exits cleanly" "0" "$RC"
if [ -s "$TMPDIR/output" ]; then
echo "PASS: import produces version output"
PASSED=$((PASSED + 1))
else
echo "FAIL: import produces no output"
FAILED=$((FAILED + 1))
fi
echo ""
echo "$PASSED/$((PASSED + FAILED)) tests passed"
if [ "$FAILED" -gt 0 ]; then
exit 1
fi