You've already forked docker-compose-docker
Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d7767f4450
|
|||
|
a11f19bde1
|
|||
|
77d7368753
|
|||
|
01db5f2086
|
|||
|
7646fdb91f
|
|||
|
feaf09a116
|
|||
|
c9a1f89322
|
|||
|
cd1d27e0b8
|
|||
|
f93edaf78e
|
|||
|
d56f129569
|
|||
|
a9d7e01167
|
|||
|
93bec825c5
|
|||
|
6a7835a960
|
|||
|
7c3e6954da
|
|||
|
d2abec2ab2
|
|||
|
993ac14763
|
|||
|
8c9a0d1e1d
|
|||
|
fa51e930e0
|
|||
|
b2cc35230d
|
|||
|
9a0ff54a40
|
|||
|
5be60cca79
|
|||
|
9bbd59866d
|
|||
|
aa49a92b78
|
|||
|
9f371a3610
|
|||
|
4e47d86ca7
|
|||
|
11e9812085
|
|||
|
f9e593b09d
|
|||
|
1b22bce007
|
|||
| ffdb2d6bfe | |||
|
153270cdb4
|
|||
|
d84904bf0a
|
|||
|
5b08cdeb53
|
|||
|
dc6b0332a4
|
|||
|
e89068a193
|
|||
|
b1b74750c2
|
|||
|
8c169d2668
|
|||
|
2a1a9d0969
|
|||
|
123f806366
|
|||
|
13e459e4a1
|
|||
|
e862dccb03
|
|||
|
dc9f1b5504
|
|||
|
b520406551
|
|||
|
95257314af
|
|||
|
198e59ef56
|
|||
|
ff4c47dfb2
|
|||
|
21ff2f510b
|
|||
|
ae89e1e65d
|
|||
|
3add6b6f5e
|
|||
|
94db71a858
|
|||
|
1198dc5559
|
|||
|
405d7abb25
|
|||
|
c4a5b87082
|
|||
|
d84cc78259
|
|||
|
e6ad34eac1
|
|||
|
2a2863d00e
|
|||
|
b93eed535b
|
|||
|
e65a99bfaa
|
@@ -0,0 +1,41 @@
|
|||||||
|
name: Upload ArtifactHub Metadata
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 3 1 * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
upload-metadata:
|
||||||
|
name: "Upload artifacthub-repo.yml to OCI registry"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
|
with:
|
||||||
|
registry: ${{ github.server_url }}
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||||
|
- uses: oras-project/setup-oras@38de303aac69abb66f3e6255b7198bff35f323e3 # v2.0.0
|
||||||
|
with:
|
||||||
|
version: 1.3.2 # renovate: datasource=github-tags depName=oras-project/oras extractVersion='^v?(?<version>.*)$'
|
||||||
|
- name: Extract meta information
|
||||||
|
run: |
|
||||||
|
echo "GITEA_SERVER_HOSTNAME=$(echo "${GITHUB_SERVER_URL}" | cut -d '/' -f 3)" >> $GITHUB_ENV
|
||||||
|
echo "PACKAGE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
|
echo "REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2 | sed --regexp-extended 's/-charts?//g')" >> $GITHUB_ENV
|
||||||
|
echo "REPOSITORY_OWNER=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 1)" >> $GITHUB_ENV
|
||||||
|
- name: Push artifacthub-repo.yml
|
||||||
|
run: |
|
||||||
|
oras push ${GITEA_SERVER_HOSTNAME}/${REPOSITORY_OWNER}/${REPOSITORY_NAME}:artifacthub.io \
|
||||||
|
--config /dev/null:application/vnd.cncf.artifacthub.config.v1+yaml \
|
||||||
|
artifacthub-repo.yml:application/vnd.cncf.artifacthub.repository-metadata.layer.v1.yaml
|
||||||
|
- name: Push public cosign key
|
||||||
|
env:
|
||||||
|
COSIGN_PUBLIC_KEY: ${{ vars.COSIGN_PUBLIC_KEY }}
|
||||||
|
run: |
|
||||||
|
echo "${COSIGN_PUBLIC_KEY}" > cosign.pub
|
||||||
|
oras push ${GITEA_SERVER_HOSTNAME}/${REPOSITORY_OWNER}/${REPOSITORY_NAME}:cosign.pub \
|
||||||
|
--artifact-type application/vnd.dev.cosign.public-key.v1 \
|
||||||
|
--annotation org.opencontainers.image.title=cosign.pub \
|
||||||
|
cosign.pub:application/vnd.dev.cosign.public-key.v1
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
name: Auto release
|
name: Auto release tagged
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master" ]
|
branches: [ "master" ]
|
||||||
paths:
|
paths:
|
||||||
- Makefile
|
- Dockerfile
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GIT_EMAIL: noreply@cryptic.systems
|
GIT_EMAIL: noreply@cryptic.systems
|
||||||
@@ -13,11 +13,12 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
tag_on_change:
|
tag_on_change:
|
||||||
permissions:
|
permissions:
|
||||||
|
actions: write
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5.0.0
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -26,8 +27,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
|
||||||
@@ -42,7 +43,7 @@ jobs:
|
|||||||
id: create_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 | head --lines 1 | 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}"
|
||||||
@@ -53,10 +54,11 @@ jobs:
|
|||||||
git push origin "${defined_tag}"
|
git push origin "${defined_tag}"
|
||||||
|
|
||||||
- name: Trigger "Push tagged images" workflow
|
- name: Trigger "Push tagged images" workflow
|
||||||
uses: actions/github-script@v8.0.0
|
if: steps.check_change.outputs.changed == 'true'
|
||||||
|
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const workflowFileName = 'release.yaml';
|
const workflowFileName = 'release-tagged.yaml';
|
||||||
const defaultBranch = context.payload.repository.default_branch;
|
const defaultBranch = context.payload.repository.default_branch;
|
||||||
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
|
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +1,26 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
env:
|
|
||||||
GOPROXY: ${{ var.GOPROXY }}
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- "opened"
|
- opened
|
||||||
- "reopened"
|
- reopened
|
||||||
- "synchronize"
|
- synchronize
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
jobs:
|
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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- uses: docker/setup-qemu-action@v3.6.0
|
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v3.11.1
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
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 \
|
||||||
@@ -39,18 +30,15 @@ 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- uses: docker/setup-qemu-action@v3.6.0
|
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v3.11.1
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
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 \
|
||||||
|
|||||||
@@ -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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v19.1.0
|
- uses: DavidAnson/markdownlint-cli2-action@ded1f9488f68a970bc66ea5619e13e9b52e601cd # v23.2.0
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
|||||||
@@ -0,0 +1,95 @@
|
|||||||
|
name: Release latest
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
workflow_dispatch: {}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push-arm64:
|
||||||
|
runs-on: ubuntu-latest-arm64
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
|
|
||||||
|
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
||||||
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
||||||
|
|
||||||
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
|
with:
|
||||||
|
registry: git.cryptic.systems
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
run: |
|
||||||
|
docker buildx build \
|
||||||
|
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
|
--file Dockerfile \
|
||||||
|
--platform linux/arm64 \
|
||||||
|
--provenance false \
|
||||||
|
--push \
|
||||||
|
--tag git.cryptic.systems/volker.raschek/docker-compose:latest-arm64 \
|
||||||
|
.
|
||||||
|
|
||||||
|
push-amd64:
|
||||||
|
runs-on: ubuntu-latest-amd64
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
|
|
||||||
|
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
||||||
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
||||||
|
|
||||||
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
|
with:
|
||||||
|
registry: git.cryptic.systems
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
run: |
|
||||||
|
docker buildx build \
|
||||||
|
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
|
--file Dockerfile \
|
||||||
|
--platform linux/amd64 \
|
||||||
|
--provenance false \
|
||||||
|
--push \
|
||||||
|
--tag git.cryptic.systems/volker.raschek/docker-compose:latest-amd64 \
|
||||||
|
.
|
||||||
|
|
||||||
|
push-manifest:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- push-arm64
|
||||||
|
- push-amd64
|
||||||
|
steps:
|
||||||
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
|
with:
|
||||||
|
registry: git.cryptic.systems
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Create and push manifest
|
||||||
|
run: |
|
||||||
|
docker manifest create git.cryptic.systems/volker.raschek/docker-compose:latest \
|
||||||
|
--amend git.cryptic.systems/volker.raschek/docker-compose:latest-amd64 \
|
||||||
|
--amend git.cryptic.systems/volker.raschek/docker-compose:latest-arm64
|
||||||
|
|
||||||
|
docker manifest push git.cryptic.systems/volker.raschek/docker-compose:latest
|
||||||
|
|
||||||
|
sync-to-hub-docker-io:
|
||||||
|
needs:
|
||||||
|
- push-manifest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Copy images to docker.io
|
||||||
|
run: |
|
||||||
|
apt-get update --yes
|
||||||
|
apt-get install --yes skopeo
|
||||||
|
skopeo copy \
|
||||||
|
--all \
|
||||||
|
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
|
||||||
|
--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:latest \
|
||||||
|
docker://docker.io/volkerraschek/docker-compose:latest
|
||||||
@@ -1,7 +1,4 @@
|
|||||||
name: Release
|
name: Release tagged
|
||||||
|
|
||||||
env:
|
|
||||||
GOPROXY: ${{ var.GOPROXY }}
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -23,18 +20,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
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@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v3.11.1
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
||||||
|
|
||||||
- uses: docker/login-action@v3.6.0
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: git.cryptic.systems
|
registry: git.cryptic.systems
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
@@ -43,14 +44,13 @@ 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 BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
--build-arg GOPRIVATE=${GOPRIVATE} \
|
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
|
||||||
--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:
|
||||||
@@ -61,18 +61,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
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@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v3.11.1
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
||||||
|
|
||||||
- uses: docker/login-action@v3.6.0
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: git.cryptic.systems
|
registry: git.cryptic.systems
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
@@ -81,14 +85,13 @@ 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 BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
--build-arg GOPRIVATE=${GOPRIVATE} \
|
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
|
||||||
--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:
|
||||||
@@ -102,10 +105,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.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: docker/login-action@v3.6.0
|
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@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: git.cryptic.systems
|
registry: git.cryptic.systems
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
@@ -113,11 +120,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:
|
||||||
@@ -129,13 +136,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
VERSION="${{ inputs.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 \
|
||||||
@@ -144,5 +153,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 }}
|
||||||
@@ -10,11 +10,10 @@ 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- uses: peter-evans/dockerhub-description@v5.0.0
|
- uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # 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 }}
|
||||||
|
|||||||
+24
-14
@@ -1,21 +1,31 @@
|
|||||||
FROM docker.io/library/golang:1.25.3-alpine3.21 AS build
|
FROM docker.io/library/ubuntu:26.04 AS download
|
||||||
|
|
||||||
ARG DC_VERSION=main
|
ARG DC_VERSION=v5.1.4
|
||||||
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
|
ARG DC_VERSION=v5.1.4
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
COPY --from=build /cache/docker-compose /usr/bin/docker-compose
|
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/docker/compose/refs/tags/${DC_VERSION}/README.md" \
|
||||||
|
org.opencontainers.image.created="${BUILD_DATE}" \
|
||||||
|
org.opencontainers.image.description="Define and run multi-container applications with Docker" \
|
||||||
|
org.opencontainers.image.version=${DC_VERSION}
|
||||||
|
|
||||||
|
COPY --from=download /tmp/docker-compose /usr/bin/docker-compose
|
||||||
ENTRYPOINT [ "/usr/bin/docker-compose" ]
|
ENTRYPOINT [ "/usr/bin/docker-compose" ]
|
||||||
|
|||||||
@@ -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,12 @@ 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 BUILD_DATE="$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
--build-arg GONOSUMDB=${GONOSUMDB} \
|
|
||||||
--build-arg GOPRIVATE=${GOPRIVATE} \
|
|
||||||
--build-arg GOPROXY=${GOPROXY} \
|
|
||||||
--file Dockerfile \
|
--file Dockerfile \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--pull \
|
--pull \
|
||||||
|
|||||||
@@ -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.1.4
|
||||||
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
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
repositoryID: c7576fb6-9bfd-44ad-a7a5-fd80465f0b65
|
||||||
@@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user