47 Commits

Author SHA1 Message Date
jcabillot 114c22fdf4 Merge pull request 'feat(ci): rewrite workflows matching htpasswd standard pattern' (#13) from fix/workflow-standard into main
Main Release / hadolint (push) Successful in 11s
Main Release / test (push) Successful in 15s
Main Release / build (push) Successful in 16s
Main Release / tag (push) Successful in 18s
Tag Release / hadolint (push) Successful in 7s
Tag Release / test (push) Successful in 13s
Tag Release / build-push (push) Successful in 51s
Reviewed-on: #13
2026-06-13 22:15:24 -04:00
cloudix_mcp_server de05328845 fix: remove test.sh from pr.yaml (no tests/test.sh in repo)
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Successful in 13s
2026-06-13 20:27:43 -04:00
cloudix_mcp_server 3e8d8e1d4d fix: remove test.sh from tag.yaml test job (no tests/test.sh in repo)
PR Checks / build-test (pull_request) Successful in 13s
PR Checks / hadolint (pull_request) Failing after 2s
2026-06-13 20:27:40 -04:00
cloudix_mcp_server 6717027473 fix: remove test.sh from cron.yaml test job (no tests/test.sh in repo)
PR Checks / hadolint (pull_request) Failing after 4s
PR Checks / build-test (pull_request) Successful in 14s
2026-06-13 20:27:35 -04:00
cloudix_mcp_server 5b173be687 fix: remove test.sh from main.yaml test job (no tests/test.sh in repo) 2026-06-13 20:27:28 -04:00
cloudix_mcp_server 5308c0f5c3 fix: correct all action SHAs in tag.yaml
PR Checks / hadolint (pull_request) Failing after 2s
PR Checks / build-test (pull_request) Successful in 14s
2026-06-13 19:12:08 -04:00
cloudix_mcp_server 6f6f220c88 fix: correct all action SHAs in pr.yaml
PR Checks / build-test (pull_request) Failing after 28s
PR Checks / hadolint (pull_request) Failing after 6s
2026-06-13 19:11:58 -04:00
cloudix_mcp_server a7f786c1fb fix: correct all action SHAs in cron.yaml 2026-06-13 19:11:55 -04:00
cloudix_mcp_server 4406bd5754 fix: correct all action SHAs and secrets in main.yaml
PR Checks / hadolint (pull_request) Failing after 3s
PR Checks / build-test (pull_request) Failing after 29s
2026-06-13 19:11:51 -04:00
Sagent d5a8444739 feat(ci): rewrite all 4 workflows matching htpasswd standard pattern
PR Checks / hadolint (pull_request) Failing after 3s
PR Checks / build-test (pull_request) Failing after 28s
- pr.yaml: PR checks (hadolint + build-test) on PRs to main
- main.yaml: lint → test → build → auto-tag on push to main
- tag.yaml: lint → test → build-push with tag-based Docker metadata
- cron.yaml: nightly rebuild (0 0 * * *) with latest semver tag

Adapted from perso/htpasswd template with:
- Image: jcabillot/docker-duplicacy
- Git URL: scm.cabillot.eu/perso/docker-duplicacy.git
- RELEASE_BRANCHES: main
- Cron schedule: '0 0 * * *' (from original cron.yaml)
- Secret: GITHUB_TOKEN (existing)
2026-06-13 21:38:56 +00:00
jcabillot b1b3ca8249 Merge pull request 'feat(ci): refactor pipelines — hadolint, PR checks, tag releases, nightly rebuild' (#12) from fix/refactor-ci-pipelines into main
Main Release / hadolint (push) Successful in 11s
Main Release / test (push) Successful in 17s
Main Release / tag (push) Successful in 9s
Main Release / build-push (push) Successful in 39s
Reviewed-on: #12
2026-06-12 16:16:57 -04:00
cloudix_mcp_server 198b67b320 feat(ci): add nightly rebuild of latest + most recent tag
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Successful in 12s
2026-06-12 15:43:14 -04:00
cloudix_mcp_server 1581feba04 feat(ci): add tag release workflow with Hadolint + push :tag
PR Checks / hadolint (pull_request) Successful in 8s
PR Checks / build-test (pull_request) Successful in 15s
2026-06-12 15:43:10 -04:00
cloudix_mcp_server d5f06b1c17 feat(ci): add main release workflow with Hadolint + build-push + test + tag 2026-06-12 15:43:05 -04:00
cloudix_mcp_server 6151f18d6b feat(ci): add PR workflow with Hadolint + build + test
PR Checks / hadolint (pull_request) Successful in 7s
PR Checks / build-test (pull_request) Successful in 19s
2026-06-12 15:42:56 -04:00
cloudix_mcp_server a33dbfbe7d chore: remove wrong-named workflows 2026-06-12 15:42:33 -04:00
cloudix_mcp_server 95878a525f chore: remove wrong-named workflows 2026-06-12 15:42:29 -04:00
cloudix_mcp_server badcef7a25 chore: remove wrong-named workflows 2026-06-12 15:42:21 -04:00
cloudix_mcp_server 7c0cb1c018 chore: remove wrong-named workflows (will recreate with standard names)
PR Checks / pr-checks (pull_request) Successful in 26s
PR Checks / test (pull_request) Successful in 13s
2026-06-12 15:42:15 -04:00
cloudix_mcp_server 60976b30ec fix(ci): update action SHAs in nightly-rebuild workflow
Hadolint / hadolint (pull_request) Successful in 5s
PR Checks / pr-checks (pull_request) Successful in 21s
PR Checks / test (pull_request) Successful in 11s
2026-06-12 15:36:24 -04:00
cloudix_mcp_server e048c72eae fix(ci): update action SHAs in tag-release workflow
Hadolint / hadolint (pull_request) Successful in 6s
PR Checks / pr-checks (pull_request) Successful in 31s
PR Checks / test (pull_request) Successful in 10s
2026-06-12 15:36:18 -04:00
cloudix_mcp_server b741af039c fix(ci): update actions/checkout SHA in PR checks workflow
Hadolint / hadolint (pull_request) Successful in 9s
PR Checks / pr-checks (pull_request) Successful in 26s
PR Checks / test (pull_request) Successful in 11s
2026-06-12 15:36:07 -04:00
cloudix_mcp_server df4ab1ccd3 fix(ci): update actions/checkout SHA in hadolint workflow
PR Checks / pr-checks (pull_request) Failing after 13m37s
Hadolint / hadolint (pull_request) Failing after 13m42s
PR Checks / test (pull_request) Has been skipped
2026-06-12 15:35:57 -04:00
cloudix_mcp_server dfde0adc5b chore(ci): remove old docker-build.yaml, replaced by new modular workflows
PR Checks / pr-checks (pull_request) Failing after 10s
PR Checks / test (pull_request) Has been skipped
Hadolint / hadolint (pull_request) Failing after 11m52s
2026-06-12 15:32:43 -04:00
cloudix_mcp_server 2cf77f0af3 feat(ci): add nightly rebuild workflow 2026-06-12 15:32:36 -04:00
cloudix_mcp_server 78bb18ad12 feat(ci): add tag release workflow 2026-06-12 15:32:24 -04:00
cloudix_mcp_server 537d0c1dc9 feat(ci): add PR checks workflow 2026-06-12 15:32:15 -04:00
cloudix_mcp_server 56185bffdb feat(ci): add hadolint workflow with step-level continue-on-error 2026-06-12 15:32:06 -04:00
jcabillot 1a85bc6112 Merge pull request 'ci: add automatic semver tagging on merge to main' (#11) from feat/semver-tag-action into main
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 36s
Docker Build and Push / test (push) Failing after 14m38s
Docker Build and Push / push (push) Has been skipped
Reviewed-on: #11
2026-06-12 13:42:25 -04:00
cloudix_mcp_server 73d4517fe8 ci: add automatic semver tagging on merge to main
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Successful in 32s
Docker Build and Push / test (pull_request) Successful in 12s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 13:19:41 -04:00
jcabillot d534b2d692 Merge pull request 'chore(deps): update hadolint/hadolint-action action to v3.3.0' (#10) from renovate/hadolint-hadolint-action-3.x into main
Docker Build and Push / lint (push) Successful in 6s
Docker Build and Push / build (push) Successful in 26s
Docker Build and Push / test (push) Successful in 10s
Docker Build and Push / push (push) Successful in 17s
Reviewed-on: #10
2026-06-12 07:34:17 -04:00
renovate 6df742e115 chore(deps): update hadolint/hadolint-action action to v3.3.0
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 25s
Docker Build and Push / test (pull_request) Successful in 11s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 01:18:12 +00:00
jcabillot 4e25367e8c Merge pull request 'fix: add version comments to Gitea Actions workflow' (#9) from fix/action-version-comments into main
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 39s
Docker Build and Push / test (push) Successful in 11s
Docker Build and Push / push (push) Successful in 23s
Reviewed-on: #9
2026-06-11 21:13:40 -04:00
cloudix_mcp_server 76577d64a8 fix: add version comments to Gitea Actions workflow
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Successful in 42s
Docker Build and Push / test (pull_request) Successful in 12s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-11 19:05:32 -04:00
cloudix_mcp_server ff943a227d Merge pull request 'chore(deps): update alpine docker tag to v3.24' (#8) from renovate/alpine-3.x into main
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 39s
Docker Build and Push / test (push) Successful in 9s
Docker Build and Push / push (push) Successful in 23s
2026-06-10 19:17:56 -04:00
renovate 58ed7a00d3 chore(deps): update alpine docker tag to v3.24
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) 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-09 20:54:59 +00:00
jcabillot 83d704c982 Merge pull request 'chore(config): migrate Renovate config' (#7) from renovate/migrate-config into main
Docker Build and Push / lint (push) Successful in 9s
Docker Build and Push / build (push) Successful in 26s
Docker Build and Push / test (push) Successful in 12s
Docker Build and Push / push (push) Successful in 21s
Reviewed-on: #7
2026-06-09 14:00:43 -04:00
cloudix_mcp_server 79c1416dc1 fix: add branches: [main] filter on push trigger
Docker Build and Push / lint (push) Successful in 9s
Docker Build and Push / build (push) Successful in 32s
Docker Build and Push / test (push) Successful in 17s
Docker Build and Push / push (push) Successful in 25s
2026-06-09 10:48:23 -04:00
renovate 4855b20c0f chore(config): migrate config renovate.json
Docker Build and Push / lint (push) Successful in 9s
Docker Build and Push / build (push) Successful in 46s
Docker Build and Push / test (push) Successful in 8s
Docker Build and Push / push (push) Successful in 23s
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Successful in 21s
Docker Build and Push / test (pull_request) Successful in 12s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-09 13:33:17 +00:00
jcabillot a66dc2659d Merge pull request 'chore: improve renovate dependency detection' (#5) from chore/renovate into main
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 10s
Docker Build and Push / push (push) Successful in 14s
Reviewed-on: #5
2026-06-09 08:39:02 -04:00
Sagent 75e41477ba chore: improve renovate dependency detection
Docker Build and Push / lint (push) Successful in 6s
Docker Build and Push / build (push) Successful in 25s
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / test (push) Successful in 10s
Docker Build and Push / build (pull_request) Successful in 25s
Docker Build and Push / push (push) Successful in 1m9s
Docker Build and Push / test (pull_request) Successful in 11s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-09 02:12:45 +00:00
jcabillot af89ede94a Merge pull request 'ci: migrate to 4-job pipeline with SHA-pinned actions' (#4) from feat/gitea-actions-v2 into main
Docker Build and Push / lint (push) Failing after 12m19s
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
Reviewed-on: #4
2026-06-08 21:11:54 -04:00
Sagent 0d79461cf9 fix: use = instead of == in shell test (SC3014)
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / lint (pull_request) Successful in 5s
Docker Build and Push / build (push) Successful in 20s
Docker Build and Push / build (pull_request) Successful in 31s
Docker Build and Push / test (push) Successful in 18s
Docker Build and Push / test (pull_request) Successful in 18s
Docker Build and Push / push (pull_request) Has been skipped
Docker Build and Push / push (push) Successful in 22s
2026-06-09 01:01:08 +00:00
cloudix_mcp_server 1f6af1d401 fix: add hadolint ignore DL3018 for apk add
Docker Build and Push / lint (pull_request) Failing after 12m37s
Docker Build and Push / lint (push) Failing after 12m44s
Docker Build and Push / build (pull_request) Has been skipped
Docker Build and Push / test (pull_request) Has been skipped
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / test (push) Has been skipped
Docker Build and Push / push (pull_request) Has been skipped
Docker Build and Push / push (push) Has been skipped
2026-06-08 19:02:26 -04:00
cloudix_mcp_server 0969529fc5 ci: add smoke test for docker-duplicacy
Docker Build and Push / lint (push) Failing after 4s
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
Docker Build and Push / lint (pull_request) Failing after 7s
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-08 18:53:05 -04:00
cloudix_mcp_server a14584c55b ci: migrate to 4-job pipeline (lint/build/test/push)
Docker Build and Push / lint (push) Failing after 5s
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-08 18:53:02 -04:00
jcabillot b236e68570 feat: add Gitea Actions workflow
Docker Build and Push / build (push) Successful in 38s
feat: add Gitea Actions workflow
2026-05-29 16:22:47 -04:00
8 changed files with 216 additions and 49 deletions
+52
View File
@@ -0,0 +1,52 @@
name: Nightly Rebuild
on:
schedule:
- cron: '0 0 * * *'
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
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 }} .
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/docker-duplicacy
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
-46
View File
@@ -1,46 +0,0 @@
name: Docker Build and Push
on:
pull_request:
branches: [main]
push:
branches: [main]
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/duplicacy
tags: |
#type=ref,event=branch
#type=ref,event=pr
#type=sha
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
- 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
+48
View File
@@ -0,0 +1,48 @@
name: Main Release
on:
push:
branches: [main]
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
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 }} .
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/docker-duplicacy:${{ 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/docker-duplicacy.git"
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: main
WITH_V: true
GIT_API_TAGGING: false
+21
View File
@@ -0,0 +1,21 @@
name: PR Checks
on:
pull_request:
branches: [main]
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
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 }} .
+47
View File
@@ -0,0 +1,47 @@
name: Tag Release
on:
push:
tags: ['*']
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
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 }} .
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/docker-duplicacy
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
+4 -3
View File
@@ -1,11 +1,12 @@
FROM alpine:3.23 FROM alpine:3.24
ARG VERSION=3.1.0 ARG VERSION=3.1.0
ARG TARGETARCH=x64 ARG TARGETARCH=x64
# hadolint ignore=DL3018
RUN apk add --no-cache curl && \ RUN apk add --no-cache curl && \
if [ "$TARGETARCH" == "amd64" ]; then export TARGETARCH="x64"; fi; wget --no-verbose -O /usr/local/bin/duplicacy "https://github.com/gilbertchen/duplicacy/releases/download/v${VERSION}/duplicacy_linux_${TARGETARCH}_${VERSION}" && \ if [ "$TARGETARCH" = "amd64" ]; then export TARGETARCH="x64"; fi; wget --no-verbose -O /usr/local/bin/duplicacy "https://github.com/gilbertchen/duplicacy/releases/download/v${VERSION}/duplicacy_linux_${TARGETARCH}_${VERSION}" && \
chmod 777 /usr/local/bin/duplicacy && \ chmod 777 /usr/local/bin/duplicacy && \
mkdir -p /config/scripts && \ mkdir -p /config/scripts && \
mkdir -p /config/cache && \ mkdir -p /config/cache && \
mkdir -p /data mkdir -p /data
+14
View File
@@ -0,0 +1,14 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"description": "Track duplicacy version from ARG in Dockerfile",
"managerFilePatterns": ["/^Dockerfile$/"],
"matchStrings": ["ARG VERSION=(?<currentValue>[\\d.]+)\\n"],
"depNameTemplate": "duplicacy",
"datasourceTemplate": "github-releases",
"packageNameTemplate": "gilbertchen/duplicacy"
}
]
}
+30
View File
@@ -0,0 +1,30 @@
#!/bin/bash
set -euo pipefail
IMAGE="$1"
FAILED=0
PASSED=0
assert_contains() {
local desc="$1" pattern="$2" file="$3"
if grep -qEi "$pattern" "$file"; then
echo "PASS: $desc"
PASSED=$((PASSED + 1))
else
echo "FAIL: $desc"
FAILED=$((FAILED + 1))
fi
}
TMPDIR="$(mktemp -d)"
trap 'rm -rf "$TMPDIR"' EXIT
# Test 1: Container runs without error
docker run --rm "$IMAGE" duplicacy -version > "$TMPDIR/output" 2>&1 || true
assert_contains "Command produces output" "duplicacy" "$TMPDIR/output"
echo ""
echo "$PASSED/$((PASSED + FAILED)) tests passed"
if [ "$FAILED" -gt 0 ]; then
exit 1
fi