12 Commits

Author SHA1 Message Date
jcabillot b31ab10ae0 Merge pull request 'chore(config): migrate Renovate config' (#7) from renovate/migrate-config into master
Docker Build and Push / lint (push) Successful in 8s
Docker Build and Push / build (push) Successful in 28s
Docker Build and Push / test (push) Successful in 9s
Docker Build and Push / push (push) Successful in 14s
Reviewed-on: #7
2026-06-11 08:40:56 -04:00
renovate 5f464623c6 chore(config): migrate config renovate.json
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Successful in 18s
Docker Build and Push / test (pull_request) Successful in 9s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-11 12:18:20 +00:00
jcabillot 9b278e5da5 Merge pull request 'chore: add renovate config with SHA-pinned action regex manager' (#4) from chore/renovate into master
Docker Build and Push / lint (push) Successful in 6s
Docker Build and Push / build (push) Successful in 13s
Docker Build and Push / test (push) Successful in 8s
Docker Build and Push / push (push) Successful in 19s
Reviewed-on: #4
2026-06-11 08:03:44 -04:00
jcabillot f09e4f147b Merge pull request 'chore(deps): update alpine docker tag to v3.24' (#6) from renovate/alpine-3.x into master
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 24s
Docker Build and Push / test (push) Successful in 9s
Docker Build and Push / push (push) Successful in 23s
Reviewed-on: #6
2026-06-11 07:22:50 -04:00
renovate 5a60c68c75 chore(deps): update alpine docker tag to v3.24
Docker Build and Push / lint (pull_request) Successful in 5s
Docker Build and Push / build (pull_request) Successful in 16s
Docker Build and Push / test (pull_request) Successful in 10s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-09 21:03:05 +00:00
cloudix_mcp_server 2c111c634d fix: add branches: [master] filter on push trigger
Docker Build and Push / lint (push) Failing after 11m26s
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / test (push) Has been skipped
Docker Build and Push / push (push) Has been skipped
2026-06-09 10:48:42 -04:00
Sagent d46b6d6236 chore: add renovate config with SHA-pinned action regex manager, fix gitlabci image quotes
Docker Build and Push / lint (push) Successful in 5s
Docker Build and Push / build (push) Successful in 31s
Docker Build and Push / test (push) Successful in 14s
Docker Build and Push / push (push) Successful in 39s
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Successful in 19s
Docker Build and Push / test (pull_request) Successful in 8s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-09 02:12:45 +00:00
jcabillot 391091734b Merge pull request 'feat: migrate to 4-job CI pipeline v2' (#3) from feat/gitea-actions-v2 into master
Docker Build and Push / lint (push) Successful in 8s
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 33s
Reviewed-on: #3
2026-06-08 20:51:02 -04:00
cloudix_mcp_server 519d3a45ce feat: migrate to 4-job CI pipeline (lint+build+test+push)
Docker Build and Push / lint (push) Successful in 10s
Docker Build and Push / build (push) Successful in 19s
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / test (push) Successful in 12s
Docker Build and Push / build (pull_request) Successful in 27s
Docker Build and Push / push (push) Successful in 26s
Docker Build and Push / test (pull_request) Successful in 12s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-08 20:23:40 -04:00
cloudix_mcp_server 06817a263b feat: add test.sh for CI 2026-06-08 20:21:57 -04:00
cloudix_mcp_server 21a8bd98ab fix: hadolint DL3018, remove quoted strings 2026-06-08 20:21:37 -04:00
jcabillot 5b9e243008 feat: add Gitea Actions workflow
Docker Build and Push / build (push) Successful in 33s
feat: add Gitea Actions workflow
2026-05-29 16:22:15 -04:00
5 changed files with 83 additions and 39 deletions
+53 -28
View File
@@ -2,45 +2,70 @@ name: Docker Build and Push
on: on:
pull_request: pull_request:
branches: [master]
push: push:
branches: [master] branches: [master]
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 - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Hadolint
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
- name: Set up Docker Buildx build:
uses: docker/setup-buildx-action@v4 runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Build image
run: docker build -t ci-image:${{ github.sha }} .
- name: Save image
run: docker save ci-image:${{ github.sha }} > image.tar
- name: Upload artifact
uses: ChristopherHX/gitea-upload-artifact@62ac910c5d3dfa85c7cb2df15afe2e342b2407c2
with:
name: docker-image
path: image.tar
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Download artifact
uses: ChristopherHX/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7
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
if: github.event_name != 'pull_request'
needs: test
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Download artifact
uses: ChristopherHX/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7
with:
name: docker-image
- name: Load image
run: docker load < image.tar
- name: Login to Docker Hub - name: Login to Docker Hub
if: github.event_name != 'pull_request' uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee
uses: docker/login-action@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/mysql-client:latest
uses: docker/metadata-action@v6 docker push jcabillot/mysql-client:latest
with:
images: jcabillot/mysql-client
tags: |
#type=ref,event=branch
#type=ref,event=pr
#type=sha
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
+1 -1
View File
@@ -1,4 +1,4 @@
image: "docker:latest" image: docker:latest
services: services:
- "docker:dind" - "docker:dind"
+5 -10
View File
@@ -1,16 +1,11 @@
FROM "alpine:3.23" FROM alpine:3.24
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>" LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
# hadolint ignore=DL3018
RUN apk add --no-cache mysql-client && \ RUN apk add --no-cache mysql-client && \
rm -rf "/usr/share/apk/keys" && \ rm -rf /usr/share/apk/keys && \
adduser -D muser adduser -D muser
# Add Tini USER muser
#ENV "TINI_VERSION" "v0.16.1"
#ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
#RUN chmod +x "/tini"
#ENTRYPOINT ["/tini", "--"]
USER "muser" ENTRYPOINT [ "/usr/bin/mysql" ]
ENTRYPOINT [ "/usr/bin/mysql" ]
+16
View File
@@ -0,0 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"gitlabci": {
"enabled": true
},
"customManagers": [
{
"customType": "regex",
"description": "Track SHA-pinned Gitea Actions (github-actions manager on Gitea platform cannot resolve SHA refs natively)",
"managerFilePatterns": ["/^\\.gitea/workflows/.*\\.ya?ml$/"],
"matchStrings": ["uses:\\s+(?<depName>[\\w.-]+\\/[\\w.-]+(?:\\/[\\w.-]+)?)@(?<currentDigest>[a-f0-9]{40})"],
"datasourceTemplate": "github-releases",
"versioningTemplate": "semver"
}
]
}
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
IMAGE="${1:-}"
if [ -z "$IMAGE" ]; then
echo "Usage: $0 <image>"
exit 1
fi
docker run --rm "$IMAGE" --version