You've already forked docker-compose-docker
Compare commits
2 Commits
42470fd83e
...
fb11864497
Author | SHA1 | Date | |
---|---|---|---|
fb11864497
|
|||
3591183c71
|
@@ -63,7 +63,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
new_tag=${{ steps.bump.outputs.new_tag }}
|
new_tag=${{ steps.bump.outputs.new_tag }}
|
||||||
git config --local user.name "${GIT_USERNAME}"
|
git config --local user.name "${GIT_USER}"
|
||||||
git config --local user.email "${GIT_EMAIL}"
|
git config --local user.email "${GIT_EMAIL}"
|
||||||
git tag -a "${new_tag}" -m "${new_tag}"
|
git tag -a "${new_tag}" -m "${new_tag}"
|
||||||
git push origin "${new_tag}"
|
git push origin "${new_tag}"
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
FROM docker.io/library/golang:1.25.3-alpine3.21 AS build
|
FROM docker.io/library/golang:1.25.3-alpine3.21 AS build
|
||||||
|
|
||||||
ARG DC_VERSION=main
|
ARG DC_VERSION=main
|
||||||
|
ARG GONOSUMDB
|
||||||
|
ARG GOPRIVATE
|
||||||
|
ARG GOPROXY
|
||||||
|
|
||||||
RUN set -ex && \
|
RUN set -ex && \
|
||||||
apk update && \
|
apk update && \
|
||||||
|
10
Makefile
10
Makefile
@@ -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.2 # renovate: datasource=github-releases depName=docker/compose
|
DC_VERSION?=v2.40.0 # 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
|
||||||
@@ -17,12 +17,20 @@ 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 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 \
|
||||||
|
@@ -11,7 +11,7 @@ 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=2.34.0
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
--volume ./path/to/docker-compose.yml:/workdir/docker-compose.yml:ro \
|
--volume ./path/to/docker-compose.yml:/workdir/docker-compose.yml:ro \
|
||||||
|
Reference in New Issue
Block a user