mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-11-23 09:12:15 +01:00
CI/CD: Patch the companion's Dockerfile for tests
This commit is contained in:
parent
3d35839f31
commit
3ac0f260e9
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -24,6 +24,10 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
- name: Patch the Dockerfile's docker-gen
|
||||
run: |
|
||||
sed -i 's#DOCKER_GEN_VERSION=.*$#DOCKER_GEN_VERSION=fix-current-container-id#g' Dockerfile
|
||||
sed -i 's#go get github.com/jwilder/docker-gen#go get github.com/buchdag/docker-gen \&\& mv /go/src/github.com/buchdag /go/src/github.com/jwilder#g' Dockerfile
|
||||
- name: Build Image
|
||||
run: docker build -t "$IMAGE" .
|
||||
- name: Inspect Image
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM golang:1.15-alpine AS go-builder
|
||||
|
||||
ENV DOCKER_GEN_VERSION=fix-current-container-id
|
||||
ENV DOCKER_GEN_VERSION=0.7.4
|
||||
|
||||
# Build docker-gen
|
||||
RUN apk add --no-cache --virtual .build-deps \
|
||||
@ -9,8 +9,7 @@ RUN apk add --no-cache --virtual .build-deps \
|
||||
git \
|
||||
make \
|
||||
musl-dev \
|
||||
&& go get github.com/buchdag/docker-gen \
|
||||
&& mv /go/src/github.com/buchdag /go/src/github.com/jwilder \
|
||||
&& go get github.com/jwilder/docker-gen \
|
||||
&& cd /go/src/github.com/jwilder/docker-gen \
|
||||
&& git -c advice.detachedHead=false checkout $DOCKER_GEN_VERSION \
|
||||
&& make get-deps \
|
||||
|
Loading…
Reference in New Issue
Block a user