Compare commits

..

30 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
b520406551 chore(deps): update docker.io/library/alpine docker tag to v3.23
All checks were successful
Build / build-amd64 (pull_request) Successful in 1m38s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 4m32s
Build / build-amd64 (push) Successful in 1m40s
Lint Markdown files / markdown-lint (push) Successful in 5s
Build / build-arm64 (push) Successful in 4m30s
2025-12-03 22:41:58 +00:00
95257314af chore(deps): update actions/checkout action to v6
All checks were successful
Build / build-amd64 (pull_request) Successful in 1m32s
Lint Markdown files / markdown-lint (pull_request) Successful in 5s
Build / build-arm64 (pull_request) Successful in 4m23s
Build / build-amd64 (push) Successful in 1m31s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 4m23s
2025-12-02 21:07:00 +00:00
198e59ef56 chore(deps): update docker.io/library/golang docker tag to v1.25.5
All checks were successful
Build / build-amd64 (pull_request) Successful in 1m35s
Lint Markdown files / markdown-lint (pull_request) Successful in 5s
Build / build-arm64 (pull_request) Successful in 4m28s
Build / build-amd64 (push) Successful in 1m36s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 4m26s
2025-12-02 20:05:39 +00:00
ff4c47dfb2 chore(deps): update davidanson/markdownlint-cli2-action action to v21
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 8s
Build / build-amd64 (pull_request) Successful in 3m52s
Build / build-arm64 (pull_request) Successful in 5m59s
Build / build-amd64 (push) Successful in 1m36s
Lint Markdown files / markdown-lint (push) Successful in 5s
Build / build-arm64 (push) Successful in 4m33s
2025-11-17 20:06:46 +00:00
21ff2f510b chore(deps): update actions/checkout action to v5.0.1
All checks were successful
Build / build-arm64 (pull_request) Successful in 4m28s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
Build / build-amd64 (pull_request) Successful in 1m31s
Build / build-arm64 (push) Successful in 4m23s
Lint Markdown files / markdown-lint (push) Successful in 9s
Build / build-amd64 (push) Successful in 1m32s
2025-11-17 17:07:59 +00:00
ae89e1e65d chore(deps): restrict updates of docker/compose to minor and patch
All checks were successful
Build / build-amd64 (push) Successful in 2m50s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 4m59s
2025-11-16 16:50:46 +01:00
3add6b6f5e fix(ci): trigger push tagged images workflow based on condition
All checks were successful
Build / build-amd64 (push) Successful in 4m4s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 5m50s
2025-11-12 21:29:59 +01:00
94db71a858 chore(deps): update docker.io/library/golang docker tag to v1.25.4
All checks were successful
Build / build-amd64 (pull_request) Successful in 1m30s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 4m25s
Build / build-amd64 (push) Successful in 1m29s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 4m25s
2025-11-05 23:05:48 +00:00
1198dc5559 chore(deps): update docker/setup-qemu-action action to v3.7.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 4m25s
Lint Markdown files / markdown-lint (pull_request) Successful in 25s
Build / build-amd64 (pull_request) Successful in 1m52s
Build / build-amd64 (push) Successful in 1m33s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 4m21s
2025-11-05 17:07:00 +00:00
405d7abb25 style(ci): sort args
All checks were successful
Build / build-amd64 (push) Successful in 2m58s
Lint Markdown files / markdown-lint (push) Successful in 30s
Build / build-arm64 (push) Successful in 7m23s
2025-11-02 22:33:52 +01:00
c4a5b87082 docs(README): adapt example
All checks were successful
Build / build-amd64 (push) Successful in 2m21s
Lint Markdown files / markdown-lint (push) Successful in 4s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 5s
Build / build-arm64 (push) Successful in 7m1s
2025-10-30 22:57:44 +01:00
d84cc78259 fix(ci): add missing DC_VERSION
Some checks failed
Build / build-amd64 (push) Has been cancelled
Build / build-arm64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
2025-10-30 22:56:44 +01:00
e6ad34eac1 chore(deps): update dependency docker/compose to v2.40.3
All checks were successful
Build / build-amd64 (pull_request) Successful in 14m46s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 18m47s
Auto release / tag_on_change (push) Successful in 16s
Build / build-amd64 (push) Successful in 2m29s
Lint Markdown files / markdown-lint (push) Successful in 5s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 5s
Build / build-arm64 (push) Successful in 7m1s
2025-10-30 11:05:33 +00:00
2a2863d00e chore(deps): update davidanson/markdownlint-cli2-action action to v20
All checks were successful
Build / build-amd64 (push) Successful in 3m17s
Lint Markdown files / markdown-lint (push) Successful in 5s
Build / build-arm64 (push) Successful in 7m5s
2025-10-27 17:18:09 +01:00
b93eed535b fix(ci): remove leading v of container image tags
Some checks failed
Build / build-amd64 (push) Has been cancelled
Build / build-arm64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
2025-10-27 17:17:59 +01:00
e65a99bfaa fix(ci): set GONOSUMDB and GOPRIVATE 2025-10-27 17:17:59 +01:00
93fa3783b5 chore(deps): update dependency docker/compose to v2.40.2
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m20s
Lint Markdown files / markdown-lint (pull_request) Successful in 5s
Build / build-arm64 (pull_request) Successful in 7m1s
Auto release / tag_on_change (push) Successful in 11s
Build / build-amd64 (push) Successful in 2m23s
Lint Markdown files / markdown-lint (push) Successful in 4s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 5s
Build / build-arm64 (push) Successful in 7m2s
2025-10-24 18:28:45 +02:00
cb8675a154 revert(deps): update dependency docker/compose to v2.40.2
Some checks failed
Update Docker Hub Description / update-description-on-hub-docker-io (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
Auto release / tag_on_change (push) Has been cancelled
This reverts commit 7edacb5a6c.
2025-10-24 18:27:50 +02:00
2cba5ee3b2 fix(ci): add missing step id
Some checks failed
Build / build-arm64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
2025-10-24 18:27:36 +02:00
7edacb5a6c chore(deps): update dependency docker/compose to v2.40.2
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m21s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 7m7s
Auto release / tag_on_change (push) Successful in 23s
Build / build-amd64 (push) Successful in 2m22s
Lint Markdown files / markdown-lint (push) Successful in 7s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 5s
Build / build-arm64 (push) Successful in 7m4s
2025-10-24 17:48:42 +02:00
ed72535db4 rever(deps): update dependency docker/compose to v2.40.2
Some checks failed
Auto release / tag_on_change (push) Failing after 5s
Build / build-arm64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
Build / build-amd64 (push) Has been cancelled
Update Docker Hub Description / update-description-on-hub-docker-io (push) Has been cancelled
This reverts commit a5fd97a0e2.
2025-10-24 17:48:11 +02:00
5407e037f0 fix(ci): adapt javascript
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-24 17:47:34 +02:00
fb4051edb0 fix(ci): add GOPROXY
Some checks failed
Build / build-amd64 (push) Successful in 2m26s
Lint Markdown files / markdown-lint (push) Successful in 5s
Build / build-arm64 (push) Has been cancelled
2025-10-24 17:37:58 +02:00
a5fd97a0e2 chore(deps): update dependency docker/compose to v2.40.2
Some checks failed
Build / build-amd64 (pull_request) Successful in 2m23s
Lint Markdown files / markdown-lint (pull_request) Successful in 5s
Build / build-arm64 (pull_request) Successful in 7m10s
Auto release / tag_on_change (push) Successful in 10s
Build / build-arm64 (push) Has been cancelled
Build / build-amd64 (push) Has started running
Lint Markdown files / markdown-lint (push) Has been cancelled
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 6s
2025-10-24 17:22:02 +02:00
2f08126ac7 fix(ci): enable auto-release workflow
All checks were successful
Build / build-amd64 (push) Successful in 2m21s
Lint Markdown files / markdown-lint (push) Successful in 5s
Build / build-arm64 (push) Successful in 7m3s
2025-10-24 17:21:03 +02:00
5740bd1782 fix(ci): disable autorelease
All checks were successful
Build / build-amd64 (push) Successful in 2m23s
Lint Markdown files / markdown-lint (push) Successful in 5s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 4s
Build / build-arm64 (push) Successful in 7m1s
2025-10-24 13:15:51 +02:00
729f95c990 fix(ci): use REPOSITORY_RW_TOKEN 2025-10-23 21:12:47 +02:00
9 changed files with 114 additions and 103 deletions

View File

@@ -4,7 +4,7 @@ on:
push: push:
branches: [ "master" ] branches: [ "master" ]
paths: paths:
- Makefile - Dockerfile
env: env:
GIT_EMAIL: noreply@cryptic.systems GIT_EMAIL: noreply@cryptic.systems
@@ -14,9 +14,10 @@ jobs:
tag_on_change: tag_on_change:
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v6.0.1
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -25,8 +26,8 @@ jobs:
run: | run: |
echo "changed=false" >> $GITHUB_OUTPUT echo "changed=false" >> $GITHUB_OUTPUT
for file in Makefile; do for file in Dockerfile; do
if git diff HEAD~1 HEAD -- "${file}" | grep --quiet '^[+-]DC_VERSION'; then if git diff HEAD~1 HEAD -- "${file}" | grep --quiet '^[+-]ARG DC_VERSION'; then
echo "DC_VERSION line changed." echo "DC_VERSION line changed."
echo "changed=true" >> $GITHUB_OUTPUT echo "changed=true" >> $GITHUB_OUTPUT
break break
@@ -38,9 +39,10 @@ jobs:
run: echo "No DC_VERSION change. Exiting..." run: echo "No DC_VERSION change. Exiting..."
- name: Create and push new tag - name: Create and push new tag
id: create_tag
if: steps.check_change.outputs.changed == 'true' if: steps.check_change.outputs.changed == 'true'
run: | 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 "defined_tag=${defined_tag}" >> $GITHUB_OUTPUT
echo "New tag: ${defined_tag}" echo "New tag: ${defined_tag}"
@@ -52,12 +54,19 @@ jobs:
- name: Trigger "Push tagged images" workflow - name: Trigger "Push tagged images" workflow
if: steps.check_change.outputs.changed == 'true' if: steps.check_change.outputs.changed == 'true'
uses: peter-evans/repository-dispatch@v4.0.0 uses: actions/github-script@v8.0.0
with: with:
client-payload: | script: |
{ const workflowFileName = 'release.yaml';
"tag": "${{ steps.bump.outputs.defined_tag }}" const defaultBranch = context.payload.repository.default_branch;
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: workflowFileName,
ref: defaultBranch,
inputs: {
tag: definedTag
} }
event-type: push-tagged-images });
repository: ${{ github.repository }}
token: ${{ github.token }}

View File

@@ -3,9 +3,9 @@ name: Build
on: on:
pull_request: pull_request:
types: types:
- "opened" - opened
- "reopened" - reopened
- "synchronize" - synchronize
push: push:
branches: branches:
- master - master
@@ -15,8 +15,8 @@ jobs:
build-arm64: build-arm64:
runs-on: ubuntu-latest-arm64 runs-on: ubuntu-latest-arm64
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v6.0.1
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.7.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.11.1
- name: Build image - name: Build image
@@ -24,9 +24,6 @@ jobs:
TAG=latest TAG=latest
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/arm64 \ --platform linux/arm64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \
@@ -36,8 +33,8 @@ jobs:
build-amd64: build-amd64:
runs-on: ubuntu-latest-amd64 runs-on: ubuntu-latest-amd64
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v6.0.1
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.7.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.11.1
- name: Build image - name: Build image
@@ -45,9 +42,6 @@ jobs:
TAG=latest TAG=latest
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/amd64 \ --platform linux/amd64 \
--file Dockerfile \ --file Dockerfile \
--provenance false \ --provenance false \

View File

@@ -15,7 +15,7 @@ jobs:
markdown-lint: markdown-lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v5.0.0 - uses: actions/checkout@v6.0.1
- uses: DavidAnson/markdownlint-cli2-action@v19.1.0 - uses: DavidAnson/markdownlint-cli2-action@v21.0.0
with: with:
globs: '**/*.md' globs: '**/*.md'

View File

@@ -4,8 +4,12 @@ on:
push: push:
tags: tags:
- "**" - "**"
repository_dispatch: workflow_dispatch:
types: [ push-tagged-images ] inputs:
tag:
description: "Tag which should be released"
type: string
required: true
jobs: jobs:
push-arm64: push-arm64:
@@ -14,17 +18,21 @@ jobs:
- id: version_extraction - id: version_extraction
name: Extract git tag name: Extract git tag
run: | run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}" VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}" VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v5.0.0 echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v6.0.1
with: with:
fetch-tags: true fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version }}" ref: "${{ steps.version_extraction.outputs.version_raw }}"
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.7.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.6.0 - uses: docker/login-action@v3.6.0
@@ -36,14 +44,12 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \ --build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/arm64 \
--file Dockerfile \ --file Dockerfile \
--platform linux/arm64 \
--provenance false \ --provenance false \
--tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-arm64 \
--push \ --push \
--tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version_cleaned }}-arm64 \
. .
push-amd64: push-amd64:
@@ -52,17 +58,21 @@ jobs:
- id: version_extraction - id: version_extraction
name: Extract git tag name: Extract git tag
run: | run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}" VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}" VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v5.0.0 echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v6.0.1
with: with:
fetch-tags: true fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version }}" ref: "${{ steps.version_extraction.outputs.version_raw }}"
- uses: docker/setup-qemu-action@v3.6.0 - uses: docker/setup-qemu-action@v3.7.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.6.0 - uses: docker/login-action@v3.6.0
@@ -74,14 +84,12 @@ jobs:
- name: Build and push image - name: Build and push image
run: | run: |
docker buildx build \ docker buildx build \
--build-arg GONOSUMDB=${GONOSUMDB} \ --build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--platform linux/amd64 \
--file Dockerfile \ --file Dockerfile \
--platform linux/amd64 \
--provenance false \ --provenance false \
--tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-amd64 \
--push \ --push \
--tag git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version_cleaned }}-amd64 \
. .
push-manifest: push-manifest:
@@ -93,10 +101,14 @@ jobs:
- id: version_extraction - id: version_extraction
name: Extract git tag name: Extract git tag
run: | run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}" VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}" VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3.6.0 - uses: docker/login-action@v3.6.0
with: with:
@@ -106,11 +118,11 @@ jobs:
- name: Create and push manifest - name: Create and push manifest
run: | run: |
docker manifest create git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} \ docker manifest create git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version_cleaned }} \
--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_cleaned }}-amd64 \
--amend git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }}-arm64 --amend git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version_cleaned }}-arm64
docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} docker manifest push git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version_cleaned }}
sync-to-hub-docker-io: sync-to-hub-docker-io:
needs: needs:
@@ -120,15 +132,17 @@ jobs:
- id: version_extraction - id: version_extraction
name: Extract git tag name: Extract git tag
run: | run: |
VERSION="${{ github.event.client_payload.tag || github.ref_name }}" VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}" VERSION="${VERSION#refs/*/}"
echo "Version: ${VERSION}"
echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- name: Copy images to docker.io - name: Copy images to docker.io
run: | run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
apt-get update --yes apt-get update --yes
apt-get install --yes skopeo apt-get install --yes skopeo
skopeo copy \ skopeo copy \
@@ -137,5 +151,5 @@ jobs:
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \ --dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \ --src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--src-username volker.raschek \ --src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version }} \ docker://git.cryptic.systems/volker.raschek/docker-compose:${{ steps.version_extraction.outputs.version_cleaned }} \
docker://docker.io/volkerraschek/docker-compose:${{ steps.version_extraction.outputs.version }} docker://docker.io/volkerraschek/docker-compose:${{ steps.version_extraction.outputs.version_cleaned }}

View File

@@ -10,10 +10,9 @@ on:
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@v5.0.0 - uses: actions/checkout@v6.0.1
- uses: peter-evans/dockerhub-description@v5.0.0 - uses: peter-evans/dockerhub-description@v5.0.0
with: with:
username: ${{ secrets.DOCKER_IO_USERNAME }} username: ${{ secrets.DOCKER_IO_USERNAME }}

View File

@@ -1,21 +1,23 @@
FROM docker.io/library/golang:1.25.3-alpine3.21 AS build FROM docker.io/library/ubuntu:24.04 AS download
ARG DC_VERSION=main ARG DC_VERSION=v5.0.0
ARG GONOSUMDB
ARG GOPRIVATE
ARG GOPROXY
RUN set -ex && \ RUN NAME=docker-compose-$(uname | tr [:upper:] [:lower:])-$(uname -m); \
apk update && \ apt update --yes && \
apk upgrade && \ apt install --yes curl && \
apk add git make curl \
--fail \
--output "/tmp/${NAME}" \
--location "https://github.com/docker/compose/releases/download/${DC_VERSION}/${NAME}" && \
curl \
--fail \
--output /tmp/checksums.txt \
--location "https://github.com/docker/compose/releases/download/${DC_VERSION}/checksums.txt" && \
(cd /tmp && sha256sum --ignore-missing --check checksums.txt) && \
ln -s "${NAME}" /tmp/docker-compose && \
chmod +x /tmp/docker-compose
RUN git clone https://github.com/docker/compose.git --branch ${DC_VERSION} docker-compose && \ FROM scratch
cd docker-compose && \
make DESTDIR=/cache
FROM docker.io/library/alpine:3.22
COPY --from=build /cache/docker-compose /usr/bin/docker-compose
COPY --from=download /tmp/docker-compose /usr/bin/docker-compose
ENTRYPOINT [ "/usr/bin/docker-compose" ] ENTRYPOINT [ "/usr/bin/docker-compose" ]

View File

@@ -1,7 +1,3 @@
# DC_VERSION
# Only required to install a specify version
DC_VERSION?=v2.40.2 # 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
# run a container image. # run a container image.
@@ -17,20 +13,11 @@ 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 GONOSUMDB=${GONOSUMDB} \
--build-arg GOPRIVATE=${GOPRIVATE} \
--build-arg GOPROXY=${GOPROXY} \
--file Dockerfile \ --file Dockerfile \
--no-cache \ --no-cache \
--pull \ --pull \

View File

@@ -11,12 +11,12 @@ The workflow or how `docker-compose` can in general be used is documented at
image. image.
```bash ```bash
IMAGE_VERSION=2.40.2 IMAGE_VERSION=5.0.0
docker run \ docker run \
--rm \ --rm \
--volume ./path/to/docker-compose.yml:/workdir/docker-compose.yml:ro \ --volume "$(pwd):$(pwd)" \
--volume /var/run/docker.sock:/var/run/docker.sock \ --volume /var/run/docker.sock:/var/run/docker.sock \
--workdir /workdir \ --workdir "$(pwd)" \
git.cryptic.systems/volker.raschek/docker-compose:${IMAGE_VERSION} \ "git.cryptic.systems/volker.raschek/docker-compose:${IMAGE_VERSION}" \
ps version
``` ```

View File

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