From 15b5894e0a22f431de4b9ac3acaad8d0b52a8e4b Mon Sep 17 00:00:00 2001 From: Denis Tingaikin Date: Fri, 8 Apr 2022 23:27:40 +0300 Subject: [PATCH 1/2] fix dockerfile path Signed-off-by: Denis Tingaikin --- .github/workflows/push.yaml | 2 +- .github/workflows/release.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 5b35e86..b16b9a1 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -37,7 +37,7 @@ jobs: - name: "Build and push" uses: docker/build-push-action@v2 with: - file: Dockerfile + file: coredns/Dockerfile context: . push: true tags: ${{ steps.metaci.outputs.tags }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index de84452..0957d07 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -63,7 +63,7 @@ jobs: - name: "Build and push" uses: docker/build-push-action@v2 with: - file: Dockerfile + file: coredns/Dockerfile context: . push: true tags: "ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ steps.get-tag-step.outputs.tag }}" From ea506c7338201a21550b22dab2cee55ecec3d322 Mon Sep 17 00:00:00 2001 From: Denis Tingaikin Date: Fri, 8 Apr 2022 23:38:16 +0300 Subject: [PATCH 2/2] add build coredns binary step Signed-off-by: Denis Tingaikin --- .github/workflows/push.yaml | 7 +++++++ .github/workflows/release.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index b16b9a1..eb9888a 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -16,6 +16,13 @@ jobs: - name: "Checkout" uses: actions/checkout@v2 + - uses: actions/setup-go@v1 + with: + go-version: 1.17 + - name: "Build coredns binary" + run: | + go build -o coredns/coredns coredns/main.go + - name: "Set up Docker Buildx" uses: docker/setup-buildx-action@v1 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0957d07..7ebded4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,6 +44,13 @@ jobs: with: ref: refs/heads/${{github.event.workflow_run.head_branch}} + - uses: actions/setup-go@v1 + with: + go-version: 1.17 + - name: "Build coredns binary" + run: | + go build -o coredns/coredns coredns/main.go + - name: "Set up Docker Buildx" uses: docker/setup-buildx-action@v1