Compare commits

..

3 Commits

Author SHA1 Message Date
13e459e4a1 chore(deps): update dependency docker/compose to v5
All checks were successful
Build / build-amd64 (pull_request) Successful in 37s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 1m22s
Auto release / tag_on_change (push) Successful in 13s
Build / build-amd64 (push) Successful in 34s
Lint Markdown files / markdown-lint (push) Successful in 4s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 4s
Build / build-arm64 (push) Successful in 1m19s
2025-12-05 16:56:24 +00:00
e862dccb03 fix(renovate): update configuration
All checks were successful
Auto release / tag_on_change (push) Successful in 5s
Build / build-amd64 (push) Successful in 33s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 1m24s
2025-12-05 17:42:25 +01:00
dc9f1b5504 fix: prepare upgrade to docker-compose v5
All checks were successful
Build / build-amd64 (push) Successful in 32s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 1m25s
The following downloads the finished docker-compose v5 binary and delivers it as
a scratch container image.
2025-12-05 17:40:23 +01:00
5 changed files with 8 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ on:
push:
branches: [ "master" ]
paths:
- Makefile
- Dockerfile
env:
GIT_EMAIL: noreply@cryptic.systems
@@ -26,8 +26,8 @@ jobs:
run: |
echo "changed=false" >> $GITHUB_OUTPUT
for file in Makefile; do
if git diff HEAD~1 HEAD -- "${file}" | grep --quiet '^[+-]DC_VERSION'; then
for file in Dockerfile; do
if git diff HEAD~1 HEAD -- "${file}" | grep --quiet '^[+-]ARG DC_VERSION'; then
echo "DC_VERSION line changed."
echo "changed=true" >> $GITHUB_OUTPUT
break
@@ -42,7 +42,7 @@ jobs:
id: create_tag
if: steps.check_change.outputs.changed == 'true'
run: |
defined_tag="$(grep --only-matching --perl-regexp 'DC_VERSION\?=v?[\d]*(\.[\d]*){0,2}' Makefile | cut --delimiter='=' --fields=2)"
defined_tag="$(grep --only-matching --perl-regexp 'ARG DC_VERSION=v?[\d]*(\.[\d]*){0,2}' Dockerfile | cut --delimiter='=' --fields=2)"
echo "defined_tag=${defined_tag}" >> $GITHUB_OUTPUT
echo "New tag: ${defined_tag}"

View File

@@ -1,10 +1,8 @@
FROM docker.io/library/ubuntu:24.04 AS download
ARG DC_VERSION
ARG DC_VERSION=v5.0.0
RUN NAME=docker-compose-$(uname | tr [:upper:] [:lower:])-$(uname -m); \
echo "${NAME}" && \
echo $(uname) && \
apt update --yes && \
apt install --yes curl && \
curl \

View File

@@ -1,7 +1,3 @@
# DC_VERSION
# Only required to install a specify version
DC_VERSION?=v5.0.0 # renovate: datasource=github-releases depName=docker/compose
# CONTAINER_RUNTIME
# The CONTAINER_RUNTIME variable will be used to specified the path to a container runtime. This is needed to start and
# run a container image.
@@ -22,7 +18,6 @@ DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IM
PHONY:=container-image/build
container-image/build:
${CONTAINER_RUNTIME} build \
--build-arg DC_VERSION=${DC_VERSION} \
--file Dockerfile \
--no-cache \
--pull \

View File

@@ -11,7 +11,7 @@ The workflow or how `docker-compose` can in general be used is documented at
image.
```bash
IMAGE_VERSION=2.40.3
IMAGE_VERSION=5.0.0
docker run \
--rm \
--volume "$(pwd):$(pwd)" \

View File

@@ -4,9 +4,11 @@
{
"customType": "regex",
"fileMatch": [
"^Dockerfile$",
"^README\\.md$"
],
"matchStrings": [
"ARG DC_VERSION=(?<currentValue>.*)",
"IMAGE_VERSION=(?<currentValue>.*)"
],
"datasourceTemplate": "github-releases",