42 Commits
Author SHA1 Message Date
opencodecabilloteu 7158362382 Merge pull request 'chore(deps): update docker/build-push-action action to v7.4.0' (#31) from renovate/docker-build-push-action-7.x into master
Main Release / hadolint (push) Successful in 11s
Main Release / test (push) Successful in 27s
Renovate / renovate (push) Successful in 47s
Main Release / build (push) Successful in 21s
Main Release / tag (push) Successful in 11s
2026-09-17 05:32:19 -04:00
renovate da5180be9a chore(deps): update docker/build-push-action action to v7.4.0
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 11s
PR Checks / build-test (pull_request) Successful in 29s
2026-09-17 09:13:13 +00:00
jcabillot 2f1f4d7320 Merge pull request 'fix(ci): SHA corrompu pour anothrNick/github-tag-action (job tag casse sur master)' (#29) from fix/ci-tag-action-sha into master
Main Release / hadolint (push) Successful in 22s
Main Release / test (push) Successful in 1m5s
Main Release / build (push) Successful in 38s
Renovate / renovate (push) Successful in 1m30s
Main Release / tag (push) Successful in 23s
Reviewed-on: #29
2026-09-15 17:39:46 -04:00
OpenCode Cabillot 42ff058a6f fix(ci): correct handed-corrupted SHA for anothrNick/github-tag-action
PR Checks / hadolint (pull_request) Successful in 12s
PR Checks / build-test (pull_request) Successful in 26s
The tag job in main.yaml references
  anothrNick/github-tag-action@4ed44965e0
which does not exist upstream: the runner fails with
  Unable to resolve 4ed44965...: reference not found
  ##[error]reference not found

The first 12 chars match the real commit, the rest is fabricated - the
signature of a hand-rewritten YAML (commit 5e1827b re-added the step with a
bad SHA after 8b583cc had removed it). The correct commit for tag v1.75.0
is 4ed44965e0db8dab2b466a16da04aec3cc312fd8.

Impact: main.yaml has been red on every push to master since (runs 8197 and
8616: hadolint/test/build green, tag failed), so no release tag is created
and tag.yaml never runs -> no release build pushed to Docker Hub.

Verified against the upstream repo: tag 1.75.0 (and the v1 alias) both point
at 4ed44965e0db8dab2b466a16da04aec3cc312fd8.
2026-09-13 14:57:01 +00:00
jcabillot d2b11aefeb Merge pull request 'fix(docker): numeric uid/gid pour hadolint DL3066 + bump hadolint-action v3.5.0' (#27) from fix/dl3066-numeric-uid into master
Main Release / hadolint (push) Successful in 8s
Renovate / renovate (push) Successful in 22s
Main Release / test (push) Successful in 30s
Main Release / build (push) Successful in 28s
Main Release / tag (push) Failing after 8s
Reviewed-on: #27
2026-09-13 10:46:25 -04:00
OpenCode Cabillot fb061f33a1 fix(docker): pin numeric uid/gid so hadolint DL3066 passes
PR Checks / hadolint (pull_request) Successful in 11s
PR Checks / build-test (pull_request) Successful in 31s
hadolint 2.15.x - pulled in by hadolint-action v3.5.0 - adds DL3066
("Non-numeric user-id may not be resolvable by host system"). The
Dockerfile's `USER muser` trips it and the hadolint job exits 1 (hadolint
fails on info-level findings by default), turning the PR Checks pipeline
red on the Renovate bump PR.

muser was created without an explicit uid/gid, so its numeric identity
depended on busybox's auto-assignment. Both ids are now pinned at
1000:1000 - the values Alpine was already assigning - and USER uses the
numeric form, which is always resolvable by the host.

Verified with the upstream hadolint v2.15.1 binary: the previous
Dockerfile reports "Dockerfile:9 DL3066 info" and exits 1, the fixed one
lints clean and exits 0.

The hadolint-action v3.3.0 -> v3.5.0 bump is included here (all four
workflows, SHA 06be81ba) so that master ends up on v3.5.0 with a clean
lint - superseding Renovate PR #23.
2026-09-13 14:41:49 +00:00
jcabillot 78d4ce958a Merge pull request 'chore(deps): update actions/checkout digest to 3d3c42e' (#20) from renovate/actions-checkout-digest into master
Main Release / hadolint (push) Successful in 17s
Main Release / test (push) Successful in 46s
Renovate / renovate (push) Successful in 1m13s
Main Release / build (push) Successful in 1m4s
Main Release / tag (push) Failing after 10s
Reviewed-on: #20
2026-09-08 21:17:34 -04:00
renovate 57171f2cb2 chore(deps): update actions/checkout digest to 3d3c42e
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 28s
PR Checks / build-test (pull_request) Successful in 58s
2026-09-08 00:22:48 +00:00
opencodecabilloteu d402e22cb7 Merge pull request 'chore(deps): update docker/login-action digest to dbcb813' (#21) from renovate/docker-login-action-digest into master
Main Release / hadolint (push) Successful in 30s
Renovate / renovate (push) In progress
Main Release / test (push) Successful in 1m34s
Main Release / build (push) Successful in 1m15s
Main Release / tag (push) Failing after 25s
2026-09-07 19:31:36 -04:00
renovate 0a421529fe chore(deps): update docker/login-action digest to dbcb813
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 1m19s
PR Checks / build-test (pull_request) Successful in 1m25s
2026-09-07 23:20:43 +00:00
opencodecabilloteu 9d40a91bba Merge pull request 'chore(deps): update docker/setup-buildx-action digest to 37fe631' (#22) from renovate/docker-setup-buildx-action-digest into master
Main Release / hadolint (push) Successful in 36s
Main Release / test (push) Successful in 1m35s
Main Release / build (push) Successful in 59s
Main Release / tag (push) Failing after 16s
Renovate / renovate (push) Successful in 4m3s
2026-09-07 18:31:17 -04:00
renovate 1b0967895c chore(deps): update docker/setup-buildx-action digest to 37fe631
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 40s
PR Checks / build-test (pull_request) Successful in 1m10s
2026-09-07 22:20:40 +00:00
jcabillot 0990c05e07 Merge pull request 'chore: remove legacy GitLab CI and Jenkins files' (#19) from ci/remove-legacy-ci into master
Main Release / hadolint (push) Successful in 1m28s
Main Release / test (push) Successful in 3m4s
Renovate / renovate (push) Successful in 1m10s
Main Release / build (push) Successful in 1m47s
Main Release / tag (push) Failing after 11s
Reviewed-on: #19
2026-09-02 09:49:45 -04:00
OpenCode Cabillot e7a3584fd2 chore: remove legacy GitLab CI and Jenkins files
PR Checks / hadolint (pull_request) Successful in 1m18s
PR Checks / build-test (pull_request) Successful in 2m49s
2026-09-02 13:47:31 +00:00
jcabillot b838a95470 Merge pull request 'ci: add Renovate workflow' (#18) from add-renovate-workflow into master
Main Release / hadolint (push) Successful in 45s
Main Release / test (push) Successful in 1m8s
Renovate / renovate (push) Successful in 1m27s
Main Release / build (push) Successful in 49s
Main Release / tag (push) Failing after 20s
Reviewed-on: #18
2026-08-03 16:17:14 -04:00
OpenCode Cabillot 5d3e32cce6 ci: add Renovate workflow
PR Checks / hadolint (pull_request) Successful in 24s
PR Checks / build-test (pull_request) Successful in 45s
2026-08-02 23:41:21 +00:00
jcabillot baa28c4e58 Merge pull request 'chore(deps): update docker/login-action digest to af1e73f' (#16) from renovate/docker-login-action-digest into master
Main Release / hadolint (push) Successful in 8s
Main Release / test (push) Successful in 17s
Main Release / build (push) Successful in 25s
Main Release / tag (push) Failing after 7s
Reviewed-on: #16
2026-07-03 16:20:08 -04:00
renovate b964642c7e chore(deps): update docker/login-action digest to af1e73f
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 11s
PR Checks / build-test (pull_request) Successful in 22s
2026-07-03 14:18:07 +00:00
jcabillot 529ce4bb9d Merge pull request 'chore(deps): update docker/metadata-action digest to dc80280' (#14) from renovate/docker-metadata-action-digest into master
Main Release / hadolint (push) Successful in 13s
Main Release / test (push) Successful in 20s
Main Release / build (push) Successful in 19s
Main Release / tag (push) Failing after 4s
Reviewed-on: #14
2026-07-02 09:28:15 -04:00
jcabillot 1b48915243 Merge pull request 'chore(deps): update docker/login-action digest to c99871d' (#13) from renovate/docker-login-action-digest into master
Main Release / hadolint (push) Successful in 11s
Main Release / test (push) Successful in 21s
Main Release / build (push) Successful in 20s
Main Release / tag (push) Failing after 3s
Reviewed-on: #13
2026-07-02 09:28:11 -04:00
renovate 06d940536c chore(deps): update docker/metadata-action digest to dc80280
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 10s
PR Checks / build-test (pull_request) Successful in 30s
2026-07-02 12:44:58 +00:00
renovate e9c4aee5fb chore(deps): update docker/login-action digest to c99871d
renovate/stability-days Updates have met minimum release age requirement
PR Checks / hadolint (pull_request) Successful in 10s
PR Checks / build-test (pull_request) Successful in 40s
2026-07-02 12:44:49 +00:00
opencodecabilloteu 12026977bd chore(deps): update docker/setup-buildx-action digest to bb05f3f
Main Release / hadolint (push) Successful in 11s
Main Release / test (push) Successful in 38s
Main Release / build (push) Successful in 28s
Main Release / tag (push) Failing after 4s
chore(deps): update docker/setup-buildx-action digest to bb05f3f
2026-07-02 08:36:49 -04:00
renovate 052ef85801 chore(deps): update docker/setup-buildx-action digest to bb05f3f
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Successful in 16s
2026-07-02 09:56:03 +00:00
jcabillot b68f93af3b Merge pull request 'chore(deps): update docker/build-push-action action to v7.3.0' (#12) from renovate/docker-build-push-action-7.x into master
Main Release / hadolint (push) Successful in 8s
Main Release / test (push) Successful in 16s
Main Release / build (push) Successful in 30s
Main Release / tag (push) Failing after 3s
Reviewed-on: #12
2026-07-01 16:23:24 -04:00
renovate f3c88694ff chore(deps): update docker/build-push-action action to v7.3.0
PR Checks / hadolint (pull_request) Successful in 10s
PR Checks / build-test (pull_request) Successful in 17s
2026-07-01 14:52:59 +00:00
jcabillot 9221f89495 Merge pull request 'chore(deps): update actions/checkout action to v7' (#11) from renovate/actions-checkout-7.x into master
Main Release / hadolint (push) Successful in 8s
Main Release / test (push) Successful in 16s
Main Release / build (push) Successful in 13s
Main Release / tag (push) Failing after 4s
Reviewed-on: #11
2026-06-18 16:22:46 -04:00
renovate d7eff1f5e9 chore(deps): update actions/checkout action to v7
PR Checks / hadolint (pull_request) Successful in 7s
PR Checks / build-test (pull_request) Successful in 16s
2026-06-18 15:28:08 +00:00
jcabillot 511adab890 Merge pull request 'fix: convert workflows from artifact pattern to htpasswd 4-workflow standard' (#10) from fix/workflow-standard into master
Main Release / hadolint (push) Successful in 8s
Main Release / test (push) Successful in 12s
Main Release / build (push) Successful in 17s
Main Release / tag (push) Failing after 4s
Reviewed-on: #10
2026-06-13 18:01:01 -04:00
cloudix_mcp_server fe8235d32b fix pr.yaml - write raw content
PR Checks / hadolint (pull_request) Successful in 11s
PR Checks / build-test (pull_request) Successful in 17s
2026-06-13 17:50:49 -04:00
cloudix_mcp_server 5e1827bbc6 fix main.yaml - write raw content, fix WITH_V typo 2026-06-13 17:50:40 -04:00
cloudix_mcp_server 88afaa1a9e Convert pr.yaml to htpasswd pattern: build directly, no artifacts 2026-06-13 17:48:35 -04:00
cloudix_mcp_server 8b583cc276 Convert main.yaml to htpasswd pattern: build directly, no artifacts 2026-06-13 17:48:22 -04:00
jcabillot 7358031c06 Merge pull request 'feat(ci): refactor pipelines — hadolint, PR checks, tag releases, nightly rebuild' (#9) from fix/refactor-ci-pipelines into master
Main / lint (push) Successful in 6s
Main / build (push) Successful in 22s
Main / push (push) Failing after 18s
Main / test (push) Has been skipped
Reviewed-on: #9
2026-06-12 16:17:30 -04:00
cloudix_mcp_server d67e6972b1 feat(ci): remove old monolithic docker-build.yaml
PR Check / lint (pull_request) Successful in 7s
PR Check / build (pull_request) Successful in 19s
PR Check / test (pull_request) Successful in 10s
2026-06-12 16:08:27 -04:00
cloudix_mcp_server feddfee701 feat(ci): add cron.yaml — nightly rebuild with latest+sha tags 2026-06-12 16:08:22 -04:00
cloudix_mcp_server 285d778ceb feat(ci): add tag.yaml — hadolint + build-push on version tags 2026-06-12 16:08:19 -04:00
cloudix_mcp_server 4e4c866986 feat(ci): add main.yaml — hadolint + build-push + test + tag 2026-06-12 16:08:16 -04:00
cloudix_mcp_server d5fadd7705 feat(ci): add pr.yaml — hadolint with continue-on-error + build + test 2026-06-12 16:08:11 -04:00
jcabillot 7fc620df21 Merge pull request 'ci: add automatic semver tagging on merge to master' (#8) from feat/semver-tag-action into master
Docker Build and Push / lint (push) Successful in 8s
Docker Build and Push / build (push) Successful in 50s
Docker Build and Push / test (push) Successful in 13s
Docker Build and Push / push (push) Failing after 23s
Reviewed-on: #8
2026-06-12 13:53:08 -04:00
cloudix_mcp_server 3f18daeac9 fix: correct hadolint SHA (was broken with space)
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Successful in 28s
Docker Build and Push / test (pull_request) Successful in 13s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 13:49:03 -04:00
cloudix_mcp_server b18fb1387e ci: add automatic semver tagging on merge to master
Docker Build and Push / lint (pull_request) Failing after 3s
Docker Build and Push / build (pull_request) Has been skipped
Docker Build and Push / test (pull_request) Has been skipped
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 13:18:52 -04:00
9 changed files with 177 additions and 146 deletions
+44
View File
@@ -0,0 +1,44 @@
name: Nightly Rebuild
on:
schedule:
- cron: '0 0 * * *'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Hadolint
uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
continue-on-error: true
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Login to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
with:
images: jcabillot/mysql-client
tags: |
type=raw,value=latest,enable=true
type=sha,format=long
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- name: Build and push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
-71
View File
@@ -1,71 +0,0 @@
name: Docker Build and Push
on:
pull_request:
push:
branches: [master]
schedule:
- cron: '30 3 * * 3'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
- name: Hadolint
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf
build:
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
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Tag and push
run: |
docker tag ci-image:${{ github.sha }} jcabillot/mysql-client:latest
docker push jcabillot/mysql-client:latest
+49
View File
@@ -0,0 +1,49 @@
name: Main Release
on:
push:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- run: docker build -t jcabillot/mysql-client:${{ github.sha }} .
tag:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
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/mysql-client.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
+22
View File
@@ -0,0 +1,22 @@
name: PR Checks
on:
pull_request:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
with:
dockerfile: Dockerfile
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- run: docker build -t ci-image:${{ github.sha }} .
- run: bash tests/test.sh ci-image:${{ github.sha }}
+12
View File
@@ -0,0 +1,12 @@
name: Renovate
on:
push:
branches:
- master
workflow_dispatch:
jobs:
renovate:
uses: perso/gitea-pipelines/.gitea/workflows/renovate.yaml@main
secrets: inherit
+46
View File
@@ -0,0 +1,46 @@
name: Tag
on:
push:
tags:
- 'v*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Hadolint
uses: hadolint/hadolint-action@06be81baf89a55ffd0e24b8f04a4185738dd3387 # v3.5.0
continue-on-error: true
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Login to Docker Hub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6
with:
images: jcabillot/mysql-client
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e # v4
- name: Build and push
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
-35
View File
@@ -1,35 +0,0 @@
image: docker:latest
services:
- "docker:dind"
before_script:
- "docker login -u \"$CI_REGISTRY_USER\" -p \"$CI_REGISTRY_PASSWORD\" $CI_REGISTRY"
build-master:
stage: "build"
script:
- "docker build --pull -t \"$CI_REGISTRY_IMAGE\" ."
- "docker push \"$CI_REGISTRY_IMAGE\""
only:
- "master"
build:
stage: "build"
script:
- "docker build --pull -t \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\" ."
- "docker push \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\""
except:
- "master"
deploy-dockerhub:
stage: "deploy"
before_script:
- "docker login -u \"$DOCKERHUB_USER\" -p \"$DOCKERHUB_PASSWORD\""
- "docker login -u \"$CI_REGISTRY_USER\" -p \"$CI_REGISTRY_PASSWORD\" $CI_REGISTRY"
script:
- "docker pull \"$CI_REGISTRY_IMAGE\""
- "docker tag \"$CI_REGISTRY_IMAGE\" \"$DOCKERHUB_USER/$DOCKERHUB_PROJECT\""
- "docker push \"$DOCKERHUB_USER/$DOCKERHUB_PROJECT\""
only:
- "master"
+4 -2
View File
@@ -4,8 +4,10 @@ LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
# hadolint ignore=DL3018
RUN apk add --no-cache mysql-client && \
rm -rf /usr/share/apk/keys && \
adduser -D muser
addgroup -g 1000 muser && \
adduser -D -u 1000 -G muser muser
USER muser
# Numeric uid/gid (DL3066): identity stays resolvable by the host
USER 1000:1000
ENTRYPOINT [ "/usr/bin/mysql" ]
Vendored
-38
View File
@@ -1,38 +0,0 @@
pipeline {
environment {
registry = 'https://registry.hub.docker.com'
registryCredential = 'dockerhub_jcabillot'
dockerImage = 'jcabillot/mysql-client'
}
agent any
triggers {
cron('@midnight')
}
stages {
stage('Clone repository') {
steps{
checkout scm
}
}
stage('Build image') {
steps{
sh 'docker build --force-rm=true --no-cache=true --pull -t ${dockerImage} .'
}
}
stage('Deploy Image') {
steps{
script {
withCredentials([usernamePassword(credentialsId: 'dockerhub_jcabillot', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS')]) {
sh 'docker login --username ${DOCKER_USER} --password ${DOCKER_PASS}'
sh 'docker push ${dockerImage}'
}
}
}
}
}
}