Skip to content

Commit

Permalink
.github/workflows: Add docker build check (tailscale#8345)
Browse files Browse the repository at this point in the history
Fixes tailscale#8344

Signed-off-by: Claire Wang <[email protected]>
  • Loading branch information
clairew authored Jun 14, 2023
1 parent 27a0f0a commit 80692ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/docker-file-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Dockerfile build"
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "Build Docker image"
run: docker build .
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ RUN apk add --no-cache ca-certificates iptables iproute2 ip6tables
COPY --from=build-env /go/bin/* /usr/local/bin/
# For compat with the previous run.sh, although ideally you should be
# using build_docker.sh which sets an entrypoint for the image.
RUN ln -s /usr/local/bin/containerboot /tailscale/run.sh
RUN mkdir /tailscale && ln -s /usr/local/bin/containerboot /tailscale/run.sh

0 comments on commit 80692ed

Please sign in to comment.