aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2021-09-16 21:51:10 +0200
committerGravatar GitHub <noreply@github.com> 2021-09-16 15:51:10 -0400
commit6496b19ea40c5be21b624a697bc294bcf7f646e7 (patch)
tree2309e54f868d14c49d262a8dde29133defc81dd7
parent033c341517866c1503f2a4c4596abf514610008d (diff)
downloadcoredns-6496b19ea40c5be21b624a697bc294bcf7f646e7.tar.gz
coredns-6496b19ea40c5be21b624a697bc294bcf7f646e7.tar.zst
coredns-6496b19ea40c5be21b624a697bc294bcf7f646e7.zip
docker: test makefile and Dockerfile change (#4866)
The fix in 4b9bc138d92b90adafeb977913f96e9030507278 breaks docker with ~~~ Step 2/9 : RUN sed -i.bak s@stable/update@stable-security/update@g /etc/apt/sources.list ---> Running in 29a0dbae5746 no status provided on response: unknown ~~~ So reverted here. This adds github workflows to test Makefile.docker syntax as well. And small updates to the docker-coredns over in the release repo. Signed-off-by: Miek Gieben <miek@miek.nl>
-rw-r--r--.github/workflows/go.test.yml7
-rw-r--r--Dockerfile1
-rw-r--r--Makefile.docker2
3 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/go.test.yml b/.github/workflows/go.test.yml
index 18513bca4..c536278b2 100644
--- a/.github/workflows/go.test.yml
+++ b/.github/workflows/go.test.yml
@@ -78,5 +78,8 @@ jobs:
- name: Check out code
uses: actions/checkout@v2
- - name: Test Makefile
- run: make GITHUB_ACCESS_TOKEN=bla -n build github-push -f Makefile.release
+ - name: Test Makefile.release
+ run: make GITHUB_ACCESS_TOKEN=x -n release github-push -f Makefile.release
+
+ - name: Test Makefile.docker
+ run: make VERSION=x DOCKER=x -n release docker-push -f Makefile.docker
diff --git a/Dockerfile b/Dockerfile
index 1b077dadd..9c4608589 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,6 +1,5 @@
FROM debian:stable-slim
-RUN sed -i.bak s@stable/update@stable-security/update@g /etc/apt/sources.list
RUN apt-get update && apt-get -uy upgrade
RUN apt-get -y install ca-certificates && update-ca-certificates
diff --git a/Makefile.docker b/Makefile.docker
index fb6a6d718..ea6ceb39b 100644
--- a/Makefile.docker
+++ b/Makefile.docker
@@ -68,7 +68,7 @@ else
@# 1. Copy appropriate coredns binary to build/docker/linux/<arch>
@# 2. Copy Dockerfile to build/docker/linux/<arch>
for arch in $(LINUX_ARCH); do \
- docker build -t $(DOCKER_IMAGE_NAME)-$${arch}:$(VERSION) build/docker/linux/$${arch} ;\
+ docker build -t $(DOCKER_IMAGE_NAME)-$${arch}:$(VERSION) build/docker/$${arch} && \
docker tag $(DOCKER_IMAGE_NAME)-$${arch}:$(VERSION) $(DOCKER_IMAGE_NAME)-$${arch}:latest ;\
done
endif