Compare commits

...

51 Commits

Author SHA1 Message Date
fb11864497 fix(ci): add build args containing GO environment variables
Some checks failed
Auto release / tag_on_change (push) Has been cancelled
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
Update Docker Hub Description / update-description-on-hub-docker-io (push) Has been cancelled
2025-10-22 22:39:27 +02:00
3591183c71 fix(ci): set git user name 2025-10-22 22:38:47 +02:00
4ad2f2b9d6 fix(renovate): adapt source of customManager rule
Some checks failed
Lint Markdown files / markdown-lint (push) Has been cancelled
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
2025-10-22 22:26:36 +02:00
6767f0711a fix(renovate): typo in package name
Some checks failed
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Successful in 7s
2025-10-22 22:23:59 +02:00
d7cbda82e7 fix(ci): use DavidAnson/markdownlint-cli2-action v19.1.0
Some checks failed
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
2025-10-22 22:19:20 +02:00
5004ee907c fix(renovate): adapt customManager configuration
Some checks failed
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
2025-10-22 22:17:36 +02:00
2e01ff466d fix(ci): add markdown linter and adapt renovate packageRule
Some checks failed
Build / build-amd64 (push) Successful in 2m25s
Markdown linter / markdown-link-checker (push) Failing after 6s
Markdown linter / markdown-lint (push) Failing after 6s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 7s
Build / build-arm64 (push) Has been cancelled
2025-10-22 22:09:11 +02:00
1b398becf9 fix(ci): set git user name and email
Some checks failed
Auto release / tag_on_change (push) Successful in 5s
Build / build-amd64 (push) Successful in 2m22s
Build / build-arm64 (push) Has been cancelled
2025-10-22 22:02:26 +02:00
88f22d772a fix(renovate): enable automerge of docker-compose updates
Some checks failed
Build / build-amd64 (push) Successful in 2m22s
Build / build-arm64 (push) Has been cancelled
2025-10-22 21:50:17 +02:00
aa57016253 fix(renovate): enable automerge of docker-compose updates
All checks were successful
Build / build-amd64 (push) Successful in 2m26s
Build / build-arm64 (push) Successful in 7m0s
2025-10-22 21:10:02 +02:00
321639b8da fix(ci): add missing payload and git tag
All checks were successful
Build / build-amd64 (push) Successful in 2m27s
Build / build-arm64 (push) Successful in 7m8s
2025-10-16 22:27:45 +02:00
42ccbb2f8e fix(ci): add auto release workflow
All checks were successful
Build / build-amd64 (push) Successful in 2m40s
Build / build-arm64 (push) Successful in 7m5s
2025-10-16 22:21:31 +02:00
950ef931a1 Merge pull request 'chore(deps): update docker.io/library/golang docker tag to v1.25.3' (#68) from renovate/container-images into master
All checks were successful
Build / build-amd64 (push) Successful in 2m19s
Build / build-arm64 (push) Successful in 6m57s
2025-10-14 15:31:27 +00:00
60e5bf6475 chore(deps): update docker.io/library/golang docker tag to v1.25.3
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m22s
Build / build-arm64 (pull_request) Successful in 6m52s
2025-10-14 01:29:08 +00:00
ff710d93ce chore(deps): update dependency docker/compose to v2.40.0
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m23s
Build / build-arm64 (pull_request) Successful in 7m2s
Build / build-amd64 (push) Successful in 2m22s
Release / push-amd64 (push) Successful in 2m30s
Build / build-arm64 (push) Successful in 7m5s
Release / push-arm64 (push) Successful in 7m20s
Release / push-manifest (push) Successful in 5s
Release / sync-to-hub-docker-io (push) Successful in 22s
2025-10-08 01:03:28 +00:00
6edf118f10 Merge pull request 'chore(deps): update docker.io/library/golang docker tag to v1.25.2' (#67) from renovate/container-images into master
All checks were successful
Build / build-amd64 (push) Successful in 2m25s
Build / build-arm64 (push) Successful in 6m57s
2025-10-07 22:10:44 +00:00
4362c4c70d chore(deps): update docker.io/library/golang docker tag to v1.25.2
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m28s
Build / build-arm64 (pull_request) Successful in 6m59s
2025-10-07 22:03:33 +00:00
7941b90daf Merge pull request 'chore(deps): update peter-evans/dockerhub-description action to v5' (#65) from renovate/peter-evans-dockerhub-description-5.x into master
All checks were successful
Build / build-arm64 (push) Successful in 6m57s
Build / build-amd64 (push) Successful in 2m30s
2025-10-02 14:55:54 +00:00
69b786d1bf chore(deps): update peter-evans/dockerhub-description action to v5
All checks were successful
Build / build-arm64 (pull_request) Successful in 7m0s
Build / build-amd64 (pull_request) Successful in 2m23s
2025-10-01 16:04:45 +00:00
72405951e1 Merge pull request 'chore(deps): update docker/login-action action to v3.6.0' (#64) from renovate/actions into master
All checks were successful
Build / build-amd64 (push) Successful in 2m24s
Build / build-arm64 (push) Successful in 7m2s
2025-09-29 13:27:30 +00:00
8ea414b0fd chore(deps): update docker/login-action action to v3.6.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 7m0s
Build / build-amd64 (pull_request) Successful in 2m33s
2025-09-29 13:05:50 +00:00
2462b75bd5 Merge pull request 'chore(deps): update actions/checkout action to v5' (#63) from renovate/actions-checkout-5.x into master
All checks were successful
Build / build-amd64 (push) Successful in 2m21s
Build / build-arm64 (push) Successful in 7m6s
2025-09-19 13:19:58 +00:00
1a58bbb2b9 Merge pull request 'chore(deps): update docker.io/library/golang docker tag to v1.25.1' (#61) from renovate/container-images into master
Some checks failed
Build / build-amd64 (push) Successful in 2m20s
Build / build-arm64 (push) Has been cancelled
2025-09-19 13:12:23 +00:00
15b7f0bab7 chore(deps): update actions/checkout action to v5
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m18s
Build / build-arm64 (pull_request) Successful in 7m31s
2025-09-19 13:05:08 +00:00
4389fec2af chore(deps): update docker.io/library/golang docker tag to v1.25.1
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m21s
Build / build-arm64 (pull_request) Successful in 7m7s
2025-09-19 13:04:57 +00:00
7f2d709e67 chore(deps): update dependency docker/compose to v2.39.4
All checks were successful
Build / build-amd64 (push) Successful in 2m20s
Release / push-amd64 (push) Successful in 2m29s
Build / build-arm64 (push) Successful in 7m5s
Release / push-arm64 (push) Successful in 7m26s
Release / push-manifest (push) Successful in 5s
Release / sync-to-hub-docker-io (push) Successful in 24s
2025-09-19 13:30:18 +02:00
31a5f5d54e chore(deps): update dependency docker/compose to v2.39.3
Some checks failed
Build / build-amd64 (push) Has been cancelled
Build / build-arm64 (push) Has started running
Release / push-amd64 (push) Successful in 2m43s
Release / push-arm64 (push) Successful in 8m16s
Release / push-manifest (push) Successful in 6s
Release / sync-to-hub-docker-io (push) Successful in 22s
2025-09-19 13:28:26 +02:00
5274d03e85 Merge pull request 'chore(deps): update docker.io/library/golang docker tag to v1.25.0' (#60) from renovate/container-images into master
All checks were successful
Build / build-arm64 (push) Successful in 7m31s
Build / build-amd64 (push) Successful in 1h19m18s
2025-08-13 22:11:30 +00:00
91de1df637 chore(deps): update docker.io/library/golang docker tag to v1.25.0
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m19s
Build / build-arm64 (pull_request) Successful in 7m29s
2025-08-13 22:03:45 +00:00
d5fd28ca48 chore(deps): update dependency docker/compose to v2.39.2
All checks were successful
Build / build-amd64 (push) Successful in 2m18s
Release / push-amd64 (push) Successful in 2m21s
Build / build-arm64 (push) Successful in 6m58s
Release / push-arm64 (push) Successful in 7m12s
Release / push-manifest (push) Successful in 4s
Release / sync-to-hub-docker-io (push) Successful in 56s
2025-08-11 16:05:24 +02:00
a73876cd59 Merge pull request 'chore(deps): update actions/checkout action to v4.3.0' (#58) from renovate/actions into master
Some checks failed
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
2025-08-11 14:03:17 +00:00
1737ee3019 chore(deps): update actions/checkout action to v4.3.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 6m56s
Build / build-amd64 (pull_request) Successful in 2m9s
2025-08-11 13:09:27 +00:00
d3ac9ef684 Merge pull request 'chore(deps): update docker.io/library/golang docker tag to v1.24.6' (#56) from renovate/container-images into master
All checks were successful
Build / build-arm64 (push) Successful in 6m54s
Build / build-amd64 (push) Successful in 7m19s
2025-08-06 22:11:51 +00:00
49f063ffbb chore(deps): update docker.io/library/golang docker tag to v1.24.6
All checks were successful
Build / build-arm64 (pull_request) Successful in 6m59s
Build / build-amd64 (pull_request) Successful in 7m58s
2025-08-06 22:03:39 +00:00
62486ccfd5 Merge pull request 'chore(deps): update docker/login-action action to v3.5.0' (#55) from renovate/actions into master
All checks were successful
Build / build-arm64 (push) Successful in 6m57s
Build / build-amd64 (push) Successful in 7m56s
2025-08-04 18:29:59 +00:00
f8329d6003 chore(deps): update docker/login-action action to v3.5.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 7m1s
Build / build-amd64 (pull_request) Successful in 7m55s
2025-08-04 16:04:25 +00:00
84a1f46ab0 chore(deps): update dependency docker/compose to v2.39.1
All checks were successful
Build / build-arm64 (push) Successful in 6m56s
Build / build-amd64 (push) Successful in 7m36s
Release / push-arm64 (push) Successful in 7m18s
Release / push-amd64 (push) Successful in 8m49s
Release / push-manifest (push) Successful in 15s
Release / sync-to-hub-docker-io (push) Successful in 58s
Build / build-arm64 (pull_request) Successful in 6m56s
Build / build-amd64 (pull_request) Successful in 8m46s
2025-07-24 19:03:01 +00:00
10e5f513bf chore(deps): update dependency docker/compose to v2.39.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 8m39s
Build / build-amd64 (pull_request) Successful in 15m13s
Build / build-arm64 (push) Successful in 6m50s
Build / build-amd64 (push) Successful in 8m22s
Release / push-arm64 (push) Successful in 7m17s
Release / push-amd64 (push) Successful in 7m59s
Release / push-manifest (push) Successful in 10s
Release / sync-to-hub-docker-io (push) Successful in 36s
2025-07-24 10:03:09 +00:00
7d85aaf04c chore(deps): update dependency docker/compose to v2.38.2
All checks were successful
Build / build-arm64 (push) Successful in 7m2s
Build / build-amd64 (push) Successful in 8m16s
Release / push-arm64 (push) Successful in 7m22s
Release / push-amd64 (push) Successful in 8m9s
Release / push-manifest (push) Successful in 10s
Release / sync-to-hub-docker-io (push) Successful in 1m16s
2025-07-11 14:32:12 +02:00
7b1f749698 chore(deps): update dependency docker/compose to v2.38.1
Some checks failed
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
Release / push-arm64 (push) Successful in 7m24s
Release / push-amd64 (push) Successful in 9m50s
Release / push-manifest (push) Successful in 12s
Release / sync-to-hub-docker-io (push) Successful in 42s
2025-07-11 14:31:10 +02:00
6b2ea0d896 chore(deps): update docker.io/library/golang docker tag to v1.24.5
All checks were successful
Build / build-arm64 (pull_request) Successful in 7m0s
Build / build-amd64 (pull_request) Successful in 9m47s
Build / build-arm64 (push) Successful in 6m57s
Build / build-amd64 (push) Successful in 10m7s
2025-07-08 22:03:43 +00:00
95ad984e01 chore(deps): update dependency docker/compose to v2.38.0
All checks were successful
Build / build-amd64 (push) Successful in 7m31s
Release / push-amd64 (push) Successful in 7m46s
Build / build-arm64 (push) Successful in 6m58s
Release / push-arm64 (push) Successful in 7m20s
Release / push-manifest (push) Successful in 13s
Release / sync-to-hub-docker-io (push) Successful in 59s
2025-07-03 17:40:38 +02:00
dccf3c3093 chore(deps): update dependency docker/compose to v2.37.3
Some checks are pending
Build / build-arm64 (push) Waiting to run
Build / build-amd64 (push) Waiting to run
Release / push-amd64 (push) Successful in 8m7s
Release / push-arm64 (push) Successful in 7m18s
Release / push-manifest (push) Successful in 22s
Release / sync-to-hub-docker-io (push) Successful in 1m2s
2025-07-03 17:38:33 +02:00
fd87fbd437 chore(deps): update dependency docker/compose to v2.37.2
Some checks failed
Build / build-arm64 (push) Waiting to run
Build / build-amd64 (push) Has been cancelled
Release / push-amd64 (push) Successful in 10m44s
Release / push-arm64 (push) Successful in 7m20s
Release / push-manifest (push) Successful in 17s
Release / sync-to-hub-docker-io (push) Successful in 1m1s
2025-07-03 17:37:35 +02:00
17cc804f00 chore(deps): update dependency docker/compose to v2.37.1
All checks were successful
Build / build-arm64 (pull_request) Successful in 6m57s
Build / build-amd64 (pull_request) Successful in 7m19s
Build / build-amd64 (push) Successful in 2m2s
Build / build-arm64 (push) Successful in 6m57s
Release / push-amd64 (push) Successful in 7m25s
Release / push-arm64 (push) Successful in 7m11s
Release / push-manifest (push) Successful in 15s
Release / sync-to-hub-docker-io (push) Successful in 23s
2025-06-18 13:06:56 +00:00
5d154c71b6 chore(deps): update docker/setup-buildx-action action to v3.11.1
All checks were successful
Build / build-arm64 (pull_request) Successful in 6m57s
Build / build-amd64 (pull_request) Successful in 7m35s
Build / build-arm64 (push) Successful in 6m54s
Build / build-amd64 (push) Successful in 8m17s
2025-06-18 10:05:35 +00:00
8e89e731a4 chore(deps): update docker/setup-buildx-action action to v3.11.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 6m49s
Build / build-amd64 (pull_request) Successful in 15m51s
Build / build-arm64 (push) Successful in 6m50s
Build / build-amd64 (push) Successful in 10m59s
2025-06-16 13:05:10 +00:00
e020bda59c chore(deps): update dependency docker/compose to v2.37.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 6m56s
Build / build-amd64 (pull_request) Successful in 11m43s
Build / build-arm64 (push) Successful in 6m52s
Release / push-arm64 (push) Successful in 7m16s
Build / build-amd64 (push) Successful in 11m52s
Release / push-amd64 (push) Successful in 11m49s
Release / push-manifest (push) Successful in 10s
Release / sync-to-hub-docker-io (push) Successful in 44s
2025-06-06 01:03:11 +00:00
fa5e8b0b35 chore(deps): update docker.io/library/golang docker tag to v1.24.4
All checks were successful
Build / build-arm64 (pull_request) Successful in 6m54s
Build / build-amd64 (pull_request) Successful in 10m56s
Build / build-arm64 (push) Successful in 6m54s
Build / build-amd64 (push) Successful in 12m31s
2025-06-05 22:03:44 +00:00
4f01122d67 chore(ci): update workflow_dispatch for update docker hub description
All checks were successful
Build / build-amd64 (push) Successful in 11m25s
Build / build-arm64 (push) Successful in 11m52s
2025-05-31 22:05:28 +02:00
f6aff367ab chore(deps): update docker.io/library/alpine docker tag to v3.22
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m5s
Build / build-arm64 (pull_request) Successful in 12m12s
Build / build-arm64 (push) Successful in 12m5s
Build / build-amd64 (push) Successful in 12m36s
2025-05-30 19:03:43 +00:00
9 changed files with 216 additions and 56 deletions

View File

@@ -0,0 +1,80 @@
name: Auto release
on:
push:
branches: [ "master" ]
paths:
- Makefile
env:
GIT_EMAIL: noreply@cryptic.systems
GIT_USER: CSRBot
jobs:
tag_on_change:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Check if DC_VERSION line changed
id: check_change
run: |
echo "changed=false" >> $GITHUB_OUTPUT
for file in Makefile; do
if git diff HEAD~1 HEAD -- "${file}" | grep --quiet '^[+-]DC_VERSION'; then
echo "DC_VERSION line changed."
echo "changed=true" >> $GITHUB_OUTPUT
break
fi
done
- name: Stop if no change detected
if: steps.check_change.outputs.changed == 'false'
run: echo "No DC_VERSION change. Exiting..."
- name: Get latest tag
if: steps.check_change.outputs.changed == 'true'
id: get_tag
run: |
latest_tag=$(git tag --sort=-v:refname | grep --extended-regexp '^v[0-9]+\.[0-9]+\.[0-9]+$' | head --lines 1 || echo "0.0.0")
echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
echo "Latest tag: $latest_tag"
- name: Increment patch version
if: steps.check_change.outputs.changed == 'true'
id: bump
run: |
latest_tag=${{ steps.get_tag.outputs.latest_tag }}
IFS='.' read -r major minor patch <<< "$latest_tag"
patch=$((patch + 1))
new_tag="${major}.${minor}.${patch}"
echo "new_tag=$new_tag" >> $GITHUB_OUTPUT
echo "New tag: $new_tag"
- name: Create and push new tag
if: steps.check_change.outputs.changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
new_tag=${{ steps.bump.outputs.new_tag }}
git config --local user.name "${GIT_USER}"
git config --local user.email "${GIT_EMAIL}"
git tag -a "${new_tag}" -m "${new_tag}"
git push origin "${new_tag}"
- name: Trigger "Push tagged images" workflow
if: steps.check_change.outputs.changed == 'true'
uses: peter-evans/repository-dispatch@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: push-tagged-images
client-payload: |
{
"tag": "${{ steps.bump.outputs.new_tag }}"
}

View File

@@ -15,9 +15,9 @@ jobs:
build-arm64: build-arm64:
runs-on: ubuntu-latest-arm64 runs-on: ubuntu-latest-arm64
steps: steps:
- uses: actions/checkout@v4.2.2 - uses: actions/checkout@v5.0.0
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.10.0 - uses: docker/setup-buildx-action@v3.11.1
- name: Build image - name: Build image
run: | run: |
@@ -33,9 +33,9 @@ jobs:
build-amd64: build-amd64:
runs-on: ubuntu-latest-amd64 runs-on: ubuntu-latest-amd64
steps: steps:
- uses: actions/checkout@v4.2.2 - uses: actions/checkout@v5.0.0
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.10.0 - uses: docker/setup-buildx-action@v3.11.1
- name: Build image - name: Build image
run: | run: |

View File

@@ -0,0 +1,21 @@
name: 'Lint Markdown files'
on:
pull_request:
types:
- opened
- reopened
- synchronize
push:
branches:
- master
workflow_dispatch: {}
jobs:
markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
- uses: DavidAnson/markdownlint-cli2-action@v19.1.0
with:
globs: '**/*.md'

View File

@@ -4,16 +4,30 @@ on:
push: push:
tags: tags:
- "**" - "**"
repository_dispatch:
types: [ push-tagged-images ]
jobs: jobs:
push-arm64: push-arm64:
runs-on: ubuntu-latest-arm64 runs-on: ubuntu-latest-arm64
steps: steps:
- uses: actions/checkout@v4.2.2 - id: version_extraction
- uses: docker/setup-qemu-action@v3.6.0 name: Extract git tag
- uses: docker/setup-buildx-action@v3.10.0 run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3.4.0 - uses: actions/checkout@v5.0.0
with:
fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version }}"
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.6.0
with: with:
registry: git.cryptic.systems registry: git.cryptic.systems
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@@ -21,24 +35,34 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \ docker buildx build \
--platform linux/arm64 \ --platform linux/arm64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \
--tag git.cryptic.systems/volker.raschek/docker-compose:${TAG}-arm64 \ --tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-arm64 \
--push \ --push \
. .
push-amd64: push-amd64:
runs-on: ubuntu-latest-amd64 runs-on: ubuntu-latest-amd64
steps: steps:
- uses: actions/checkout@v4.2.2 - id: version_extraction
- uses: docker/setup-qemu-action@v3.6.0 name: Extract git tag
- uses: docker/setup-buildx-action@v3.10.0 run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3.4.0 - uses: actions/checkout@v5.0.0
with:
fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version }}"
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.6.0
with: with:
registry: git.cryptic.systems registry: git.cryptic.systems
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@@ -46,13 +70,11 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \ docker buildx build \
--platform linux/amd64 \ --platform linux/amd64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \
--tag git.cryptic.systems/volker.raschek/docker-compose:${TAG}-amd64 \ --tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-amd64 \
--push \ --push \
. .
@@ -62,7 +84,15 @@ jobs:
- push-arm64 - push-arm64
- push-amd64 - push-amd64
steps: steps:
- uses: docker/login-action@v3.4.0 - id: version_extraction
name: Extract git tag
run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3.6.0
with: with:
registry: git.cryptic.systems registry: git.cryptic.systems
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
@@ -70,30 +100,36 @@ jobs:
- name: Create and push manifest - name: Create and push manifest
run: | run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm') docker manifest create git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} \
--amend git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-amd64 \
--amend git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-arm64
docker manifest create git.cryptic.systems/volker.raschek/docker-compose:${TAG} \ docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}
--amend git.cryptic.systems/volker.raschek/docker-compose:${TAG}-amd64 \
--amend git.cryptic.systems/volker.raschek/docker-compose:${TAG}-arm64
docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${TAG}
sync-to-hub-docker-io: sync-to-hub-docker-io:
needs: needs:
- push-manifest - push-manifest
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Copy images to docker.io - id: version_extraction
run: | name: Extract git tag
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm') run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
apt-get update --yes - name: Copy images to docker.io
apt-get install --yes skopeo run: |
skopeo copy \ TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
--all \
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \ apt-get update --yes
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \ apt-get install --yes skopeo
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \ skopeo copy \
--src-username volker.raschek \ --all \
docker://git.cryptic.systems/volker.raschek/docker-compose:${TAG} \ --dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
docker://docker.io/volkerraschek/docker-compose:${TAG} --dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} \
docker://docker.io/volkerraschek/docker-compose:${{ steps.version_extraction.outputs.version }}

View File

@@ -6,14 +6,15 @@ on:
- master - master
paths: paths:
- README.md - README.md
workflow_dispatch: {}
jobs: jobs:
update-description-on-hub-docker-io: update-description-on-hub-docker-io:
runs-on: runs-on:
- ubuntu-latest - ubuntu-latest
steps: steps:
- uses: actions/checkout@v4.2.2 - uses: actions/checkout@v5.0.0
- uses: peter-evans/dockerhub-description@v4.0.2 - uses: peter-evans/dockerhub-description@v5.0.0
with: with:
username: ${{ secrets.DOCKER_IO_USERNAME }} username: ${{ secrets.DOCKER_IO_USERNAME }}
password: ${{ secrets.DOCKER_IO_PASSWORD }} password: ${{ secrets.DOCKER_IO_PASSWORD }}

View File

@@ -1,6 +1,9 @@
FROM docker.io/library/golang:1.24.3-alpine3.21 AS build FROM docker.io/library/golang:1.25.3-alpine3.21 AS build
ARG DC_VERSION=main ARG DC_VERSION=main
ARG GONOSUMDB
ARG GOPRIVATE
ARG GOPROXY
RUN set -ex && \ RUN set -ex && \
apk update && \ apk update && \
@@ -11,7 +14,7 @@ RUN git clone https://github.com/docker/compose.git --branch ${DC_VERSION} docke
cd docker-compose && \ cd docker-compose && \
make DESTDIR=/cache make DESTDIR=/cache
FROM docker.io/library/alpine:3.21 FROM docker.io/library/alpine:3.22
COPY --from=build /cache/docker-compose /usr/bin/docker-compose COPY --from=build /cache/docker-compose /usr/bin/docker-compose

View File

@@ -1,6 +1,6 @@
# DC_VERSION # DC_VERSION
# Only required to install a specify version # Only required to install a specify version
DC_VERSION?=v2.36.2 # renovate: datasource=github-releases depName=docker/compose DC_VERSION?=v2.40.0 # renovate: datasource=github-releases depName=docker/compose
# CONTAINER_RUNTIME # CONTAINER_RUNTIME
# The CONTAINER_RUNTIME variable will be used to specified the path to a container runtime. This is needed to start and # The CONTAINER_RUNTIME variable will be used to specified the path to a container runtime. This is needed to start and
@@ -17,12 +17,20 @@ DC_IMAGE_NAME:=docker-compose
DC_IMAGE_VERSION?=latest DC_IMAGE_VERSION?=latest
DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IMAGE_NAME}:${DC_IMAGE_VERSION} DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IMAGE_NAME}:${DC_IMAGE_VERSION}
# Golang related environment variables
GONOSUMDB?=
GOPRIVATE?=
GOPROXY?=
# BUILD CONTAINER IMAGE # BUILD CONTAINER IMAGE
# ===================================================================================================================== # =====================================================================================================================
PHONY:=container-image/build PHONY:=container-image/build
container-image/build: container-image/build:
${CONTAINER_RUNTIME} build \ ${CONTAINER_RUNTIME} build \
--build-arg DC_VERSION=${DC_VERSION} \ --build-arg DC_VERSION=${DC_VERSION} \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--file Dockerfile \ --file Dockerfile \
--no-cache \ --no-cache \
--pull \ --pull \
@@ -46,4 +54,4 @@ container-image/push:
# ===================================================================================================================== # =====================================================================================================================
# Declare the contents of the PHONY variable as phony. We keep that information in a variable so we can use it in # Declare the contents of the PHONY variable as phony. We keep that information in a variable so we can use it in
# if_changed. # if_changed.
.PHONY: ${PHONY} .PHONY: ${PHONY}

View File

@@ -6,8 +6,9 @@ This project contains all sources to build the container image `git.cryptic.syst
primary goal of this project is to package the binary `docker-compose` as container image. The source code of the binary primary goal of this project is to package the binary `docker-compose` as container image. The source code of the binary
can be found in the upstream project of [docker/compose](https://github.com/docker/compose). can be found in the upstream project of [docker/compose](https://github.com/docker/compose).
The workflow or how `docker-compose` can in general be used is documented [here](https://docs.docker.com/compose/). The workflow or how `docker-compose` can in general be used is documented at
Nevertheless, here are some examples of how to use the container image. [docs.docker.com](https://docs.docker.com/compose/). Nevertheless, here are some examples of how to use the container
image.
```bash ```bash
IMAGE_VERSION=2.34.0 IMAGE_VERSION=2.34.0

View File

@@ -2,13 +2,16 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [ "customManagers": [
{ {
"fileMatch": ["^README\\.md$"], "customType": "regex",
"matchStrings": [ "fileMatch": [
"VERSION=(?<currentValue>.*)" "^README\\.md$"
], ],
"depNameTemplate": "volker.raschek/docker-compose", "matchStrings": [
"datasourceTemplate": "docker", "IMAGE_VERSION=(?<currentValue>.*)"
"registryUrlTemplate": "https://git.cryptic.systems" ],
"datasourceTemplate": "github-releases",
"depNameTemplate": "docker/compose",
"versioningTemplate": "semver"
} }
], ],
"extends": [ "extends": [
@@ -19,9 +22,16 @@
], ],
"packageRules": [ "packageRules": [
{ {
"automerge": false, "addLabels": [
"matchPackageNames": [ "docker-compose" ], "renovate/automerge"
"matchManagers": [ "regex" ] ],
"automerge": true,
"matchPackageNames": [
"docker/compose"
],
"matchManagers": [
"regex"
]
} }
] ]
} }