You've already forked docker-compose-docker
Compare commits
24 Commits
v5.1.2
...
b9d3434ad2
| Author | SHA1 | Date | |
|---|---|---|---|
|
b9d3434ad2
|
|||
|
c9a1f89322
|
|||
|
cd1d27e0b8
|
|||
|
f93edaf78e
|
|||
|
d56f129569
|
|||
|
a9d7e01167
|
|||
|
93bec825c5
|
|||
|
6a7835a960
|
|||
|
7c3e6954da
|
|||
|
d2abec2ab2
|
|||
|
993ac14763
|
|||
|
8c9a0d1e1d
|
|||
|
fa51e930e0
|
|||
|
b2cc35230d
|
|||
|
9a0ff54a40
|
|||
|
5be60cca79
|
|||
|
9bbd59866d
|
|||
|
aa49a92b78
|
|||
|
9f371a3610
|
|||
|
4e47d86ca7
|
|||
|
11e9812085
|
|||
|
f9e593b09d
|
|||
|
1b22bce007
|
|||
| ffdb2d6bfe |
@@ -1,4 +1,4 @@
|
|||||||
name: Auto release
|
name: Auto release tagged
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -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@v6.0.2
|
- uses: actions/checkout@v6.0.3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -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 'ARG DC_VERSION=v?[\d]*(\.[\d]*){0,2}' Dockerfile | 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}"
|
||||||
@@ -54,10 +55,10 @@ 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: actions/github-script@v8.0.0
|
uses: actions/github-script@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 }}';
|
||||||
|
|
||||||
|
|||||||
@@ -6,18 +6,15 @@ on:
|
|||||||
- 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@v6.0.2
|
- uses: actions/checkout@v6.0.3
|
||||||
- uses: docker/setup-qemu-action@v3.7.0
|
- uses: docker/setup-qemu-action@v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v4.0.0
|
- uses: docker/setup-buildx-action@v4.1.0
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
@@ -33,9 +30,9 @@ jobs:
|
|||||||
build-amd64:
|
build-amd64:
|
||||||
runs-on: ubuntu-latest-amd64
|
runs-on: ubuntu-latest-amd64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.3
|
||||||
- uses: docker/setup-qemu-action@v3.7.0
|
- uses: docker/setup-qemu-action@v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v4.0.0
|
- uses: docker/setup-buildx-action@v4.1.0
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
markdown-lint:
|
markdown-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.3
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v21.0.0
|
- uses: DavidAnson/markdownlint-cli2-action@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@v4.1.0
|
||||||
|
- uses: docker/setup-buildx-action@v4.1.0
|
||||||
|
|
||||||
|
- uses: docker/login-action@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@v4.1.0
|
||||||
|
- uses: docker/setup-buildx-action@v4.1.0
|
||||||
|
|
||||||
|
- uses: docker/login-action@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@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,4 +1,4 @@
|
|||||||
name: Release
|
name: Release tagged
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -27,15 +27,15 @@ jobs:
|
|||||||
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
|
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.3
|
||||||
with:
|
with:
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
ref: "${{ steps.version_extraction.outputs.version_raw }}"
|
ref: "${{ steps.version_extraction.outputs.version_raw }}"
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v3.7.0
|
- uses: docker/setup-qemu-action@v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v4.0.0
|
- uses: docker/setup-buildx-action@v4.1.0
|
||||||
|
|
||||||
- uses: docker/login-action@v4.0.0
|
- uses: docker/login-action@v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: git.cryptic.systems
|
registry: git.cryptic.systems
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
@@ -44,6 +44,7 @@ jobs:
|
|||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
|
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
|
||||||
--file Dockerfile \
|
--file Dockerfile \
|
||||||
--platform linux/arm64 \
|
--platform linux/arm64 \
|
||||||
@@ -67,15 +68,15 @@ jobs:
|
|||||||
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
|
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.3
|
||||||
with:
|
with:
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
ref: "${{ steps.version_extraction.outputs.version_raw }}"
|
ref: "${{ steps.version_extraction.outputs.version_raw }}"
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v3.7.0
|
- uses: docker/setup-qemu-action@v4.1.0
|
||||||
- uses: docker/setup-buildx-action@v4.0.0
|
- uses: docker/setup-buildx-action@v4.1.0
|
||||||
|
|
||||||
- uses: docker/login-action@v4.0.0
|
- uses: docker/login-action@v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: git.cryptic.systems
|
registry: git.cryptic.systems
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
@@ -84,6 +85,7 @@ jobs:
|
|||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
|
--build-arg DC_VERSION=${{ steps.version_extraction.outputs.version_raw }} \
|
||||||
--file Dockerfile \
|
--file Dockerfile \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
@@ -110,7 +112,7 @@ jobs:
|
|||||||
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
|
||||||
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
|
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: docker/login-action@v4.0.0
|
- uses: docker/login-action@v4.2.0
|
||||||
with:
|
with:
|
||||||
registry: git.cryptic.systems
|
registry: git.cryptic.systems
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
@@ -12,7 +12,7 @@ jobs:
|
|||||||
update-description-on-hub-docker-io:
|
update-description-on-hub-docker-io:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.2
|
- uses: actions/checkout@v6.0.3
|
||||||
- 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 }}
|
||||||
|
|||||||
+10
-2
@@ -1,6 +1,6 @@
|
|||||||
FROM docker.io/library/ubuntu:24.04 AS download
|
FROM docker.io/library/ubuntu:26.04 AS download
|
||||||
|
|
||||||
ARG DC_VERSION=v5.1.2
|
ARG DC_VERSION=v5.1.4
|
||||||
|
|
||||||
RUN NAME=docker-compose-$(uname | tr [:upper:] [:lower:])-$(uname -m); \
|
RUN NAME=docker-compose-$(uname | tr [:upper:] [:lower:])-$(uname -m); \
|
||||||
apt update --yes && \
|
apt update --yes && \
|
||||||
@@ -19,5 +19,13 @@ RUN NAME=docker-compose-$(uname | tr [:upper:] [:lower:])-$(uname -m); \
|
|||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
ARG DC_VERSION=v5.1.4
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
|
LABEL io.artifacthub.package.readme-url="https://github.com/docker/compose" \
|
||||||
|
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
|
COPY --from=download /tmp/docker-compose /usr/bin/docker-compose
|
||||||
ENTRYPOINT [ "/usr/bin/docker-compose" ]
|
ENTRYPOINT [ "/usr/bin/docker-compose" ]
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ DC_IMAGE_FULLY_QUALIFIED=${DC_IMAGE_REGISTRY_NAME}/${DC_IMAGE_NAMESPACE}/${DC_IM
|
|||||||
PHONY:=container-image/build
|
PHONY:=container-image/build
|
||||||
container-image/build:
|
container-image/build:
|
||||||
${CONTAINER_RUNTIME} build \
|
${CONTAINER_RUNTIME} build \
|
||||||
|
--build-arg BUILD_DATE="$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
||||||
--file Dockerfile \
|
--file Dockerfile \
|
||||||
--no-cache \
|
--no-cache \
|
||||||
--pull \
|
--pull \
|
||||||
|
|||||||
Reference in New Issue
Block a user