Compare commits

...

8 Commits

Author SHA1 Message Date
d550ab732a chore(deps): update dependency docker/compose to v2.40.2
All checks were successful
Build / build-amd64 (pull_request) Successful in 2m29s
Build / build-arm64 (pull_request) Successful in 7m1s
2025-10-22 22:04:42 +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
5 changed files with 147 additions and 28 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_USERNAME}"
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

@@ -4,12 +4,26 @@ 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:
- 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: actions/checkout@v5.0.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-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.11.1
@@ -21,20 +35,30 @@ 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:
- 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: actions/checkout@v5.0.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-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1 - uses: docker/setup-buildx-action@v3.11.1
@@ -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,6 +84,14 @@ jobs:
- push-arm64 - push-arm64
- push-amd64 - push-amd64
steps: steps:
- 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 - uses: docker/login-action@v3.6.0
with: with:
registry: git.cryptic.systems registry: git.cryptic.systems
@@ -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

@@ -1,4 +1,4 @@
FROM docker.io/library/golang:1.25.2-alpine3.21 AS build FROM docker.io/library/golang:1.25.3-alpine3.21 AS build
ARG DC_VERSION=main ARG DC_VERSION=main

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.40.0 # renovate: datasource=github-releases depName=docker/compose 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

View File

@@ -19,7 +19,10 @@
], ],
"packageRules": [ "packageRules": [
{ {
"automerge": false, "addLabels": [
"renovate/automerge"
],
"automerge": true,
"matchPackageNames": [ "docker-compose" ], "matchPackageNames": [ "docker-compose" ],
"matchManagers": [ "regex" ] "matchManagers": [ "regex" ]
} }