Skip to content
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
16 changes: 15 additions & 1 deletion .github/workflows/build-and-publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,18 @@ jobs:
TAGS: ${{ github.ref_name }}
run: |
echo "Building and publishing tailscale client to ${REPO} with tags ${TAGS}"
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=client ./build_docker.sh
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=client ./build_docker.sh
- name: Build and publish derper image
env:
REPO: ghcr.io/${{ github.repository_owner }}/derper
TAGS: ${{ github.ref_name }}
run: |
echo "Building and publishing derper to ${REPO} with tags ${TAGS}"
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=derper ./build_docker.sh
- name: Build and publish derpprobe image
env:
REPO: ghcr.io/${{ github.repository_owner }}/derpprobe
TAGS: ${{ github.ref_name }}
run: |
echo "Building and publishing derpprobe to ${REPO} with tags ${TAGS}"
TAGS="${TAGS}" REPOS=${REPO} PLATFORM=${PLATFORM} PUSH=true TARGET=derpprobe ./build_docker.sh
36 changes: 36 additions & 0 deletions build_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,42 @@ case "$TARGET" in
--annotations="${ANNOTATIONS}" \
/usr/local/bin/tsidp
;;
derper)
DEFAULT_REPOS="tailscale/derper"
REPOS="${REPOS:-${DEFAULT_REPOS}}"
go run github.com/tailscale/mkctr \
--gopaths="tailscale.com/cmd/derper:/usr/local/bin/derper" \
--ldflags=" \
-X tailscale.com/version.longStamp=${VERSION_LONG} \
-X tailscale.com/version.shortStamp=${VERSION_SHORT} \
-X tailscale.com/version.gitCommitStamp=${VERSION_GIT_HASH}" \
--base="${BASE}" \
--tags="${TAGS}" \
--gotags="ts_package_container" \
--repos="${REPOS}" \
--push="${PUSH}" \
--target="${PLATFORM}" \
--annotations="${ANNOTATIONS}" \
/usr/local/bin/derper
;;
derpprobe)
DEFAULT_REPOS="tailscale/derpprobe"
REPOS="${REPOS:-${DEFAULT_REPOS}}"
go run github.com/tailscale/mkctr \
--gopaths="tailscale.com/cmd/derpprobe:/usr/local/bin/derpprobe" \
--ldflags=" \
-X tailscale.com/version.longStamp=${VERSION_LONG} \
-X tailscale.com/version.shortStamp=${VERSION_SHORT} \
-X tailscale.com/version.gitCommitStamp=${VERSION_GIT_HASH}" \
--base="${BASE}" \
--tags="${TAGS}" \
--gotags="ts_package_container" \
--repos="${REPOS}" \
--push="${PUSH}" \
--target="${PLATFORM}" \
--annotations="${ANNOTATIONS}" \
/usr/local/bin/derpprobe
;;
*)
echo "unknown target: $TARGET"
exit 1
Expand Down
Loading