diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 5b35e86..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 @@ -37,7 +44,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..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 @@ -63,7 +70,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 }}"