@@ -33,26 +33,14 @@ jobs:
33
33
id : set_version
34
34
run : echo "VERSION=$(cat VERSION.txt)" >> $GITHUB_ENV
35
35
36
- - name : Docker meta
37
- id : meta
38
- uses : docker/metadata-action@v5
39
- with :
40
- images : ghcr.io/${{ github.repository }}
41
- labels : |
42
- org.opencontainers.image.source="https://github.com/coreweave/tailscale"
43
- tags : |
44
- type=ref,event=branch
45
- type=ref,event=pr
46
- type=schedule
47
- type=raw,value=latest,enable={{is_default_branch}}
48
- type=raw,value=${{ env.VERSION }}
49
- type=raw,value=${{ env.VERSION }}-{{sha}}
36
+ - name : Set image tag
37
+ run : echo "TAGS=v${{ env.VERSION }}-${GITHUB_SHA::7}" >> $GITHUB_ENV
50
38
51
- - name : Set up QEMU
52
- uses : docker/setup-qemu-action@v3.2.0
39
+ - name : Set PUSH
40
+ run : echo "PUSH=true" >> $GITHUB_ENV
53
41
54
- - name : Set up Docker Buildx
55
- uses : docker/setup-buildx-action@v3.6.1
42
+ - name : Set PLATFORM
43
+ run : echo "PLATFORM=flyio" >> $GITHUB_ENV
56
44
57
45
- name : Log into registry ghcr.io
58
46
uses : docker/login-action@v3.3.0
@@ -61,17 +49,17 @@ jobs:
61
49
username : ${{ github.actor }}
62
50
password : ${{ secrets.GITHUB_TOKEN }}
63
51
64
- - name : Build and push Docker image
65
- id : build-and-push
66
- uses : docker/build-push-action@v6.6.0
67
- with :
68
- push : ${{ github.event_name != 'pull_request' }}
69
- cache-from : type=gha
70
- cache-to : type=gha,mode=max
71
- context : ./
72
- file : ./Dockerfile
73
- labels : ${{ steps.meta.outputs.labels }}
74
- platforms : linux/amd64,linux/arm64
75
- build-args : |
76
- VERSION=${{ env.VERSION }}
77
- tags : ${{ steps.meta.outputs.tags }}
52
+ - name : Publish client
53
+ shell : bash
54
+ run : |
55
+ REPOS="ghcr.io/${{ github.repository }}/tailscale" TARGET="client" ./build_docker.sh
56
+
57
+ - name : Publish k8s-operator
58
+ shell : bash
59
+ run : |
60
+ REPOS="ghcr.io/${{ github.repository }}/k8s-operator" TARGET="operator" ./build_docker.sh
61
+
62
+ - name : Publish k8s-nameserver
63
+ shell : bash
64
+ run : |
65
+ REPOS="ghcr.io/ ${{ github.repository }}/k8s-nameserver" TARGET="k8s-nameserver" ./build_docker.sh
0 commit comments