Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qfix: dockerfile path is incorrect for docker push jobs #44

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
9 changes: 8 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}"