From 80692edcb815a2b4744509a439ef70c0e1628944 Mon Sep 17 00:00:00 2001 From: Claire Wang Date: Wed, 14 Jun 2023 13:49:18 -0400 Subject: [PATCH] .github/workflows: Add docker build check (#8345) Fixes #8344 Signed-off-by: Claire Wang --- .github/workflows/docker-file-build.yml | 15 +++++++++++++++ Dockerfile | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker-file-build.yml diff --git a/.github/workflows/docker-file-build.yml b/.github/workflows/docker-file-build.yml new file mode 100644 index 000000000..08df02962 --- /dev/null +++ b/.github/workflows/docker-file-build.yml @@ -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 . diff --git a/Dockerfile b/Dockerfile index 1070510bb..14d5d0667 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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