@@ -20,32 +20,28 @@ jobs:
2020 - name : Set up Docker Buildx
2121 uses : docker/setup-buildx-action@v3
2222
23+ - name : Setup Bun
24+ uses : oven-sh/setup-bun@v2
25+
2326 - name : Login to GitHub Container Registry
2427 uses : docker/login-action@v3
2528 with :
2629 registry : ghcr.io
2730 username : ${{ github.repository_owner }}
2831 password : ${{ github.token }}
2932
30- - name : Extract Docker metadata (Bun)
31- id : meta-bun
32- uses : docker/metadata-action@v5
33- with :
34- images : ghcr.io/dcodesdev/letterspace
35- tags : |
36- type=ref,event=tag
37- type=semver,pattern={{version}}
38- type=semver,pattern={{major}}.{{minor}}
39- type=semver,pattern={{major}}
40- type=raw,value=latest,enable=${{ !contains(github.ref, '-') }}
41- type=raw,value=bun,enable=${{ !contains(github.ref, '-') }}
33+ - name : Generate Docker tags (Bun)
34+ id : tags-bun
35+ run : |
36+ TAGS=$(bun scripts/gen-container-img-tags.ts bun)
37+ echo "tags=$TAGS" >> $GITHUB_OUTPUT
4238
4339 - name : Build and push Docker image (Bun)
4440 uses : docker/build-push-action@v6
4541 with :
4642 context : .
4743 push : true
48- tags : ${{ steps.meta -bun.outputs.tags }}
44+ tags : ${{ steps.tags -bun.outputs.tags }}
4945 # platforms: linux/amd64,linux/arm64
5046 cache-from : type=gha,scope=bun
5147 cache-to : type=gha,mode=max,scope=bun
@@ -63,34 +59,29 @@ jobs:
6359 - name : Set up Docker Buildx
6460 uses : docker/setup-buildx-action@v3
6561
62+ - name : Setup Bun
63+ uses : oven-sh/setup-bun@v2
64+
6665 - name : Login to GitHub Container Registry
6766 uses : docker/login-action@v3
6867 with :
6968 registry : ghcr.io
7069 username : ${{ github.repository_owner }}
7170 password : ${{ github.token }}
7271
73- - name : Extract Docker metadata (Node)
74- id : meta-node
75- uses : docker/metadata-action@v5
76- with :
77- images : ghcr.io/dcodesdev/letterspace
78- tags : |
79- type=ref,event=tag,suffix=-node
80- type=semver,pattern={{version}}-node
81- type=semver,pattern={{major}}.{{minor}}-node
82- type=semver,pattern={{major}}-node
83- type=raw,value=latest-node,enable=${{ !contains(github.ref, '-') }}
84- type=raw,value=node,enable=${{ !contains(github.ref, '-') }}
85- type=raw,value=latest,enable=false
72+ - name : Generate Docker tags (Node)
73+ id : tags-node
74+ run : |
75+ TAGS=$(bun scripts/gen-container-img-tags.ts node)
76+ echo "tags=$TAGS" >> $GITHUB_OUTPUT
8677
8778 - name : Build and push Docker image (Node)
8879 uses : docker/build-push-action@v6
8980 with :
9081 context : .
9182 file : ./Dockerfile.node
9283 push : true
93- tags : ${{ steps.meta -node.outputs.tags }}
84+ tags : ${{ steps.tags -node.outputs.tags }}
9485 # platforms: linux/amd64,linux/arm64
9586 cache-from : type=gha,scope=node
9687 cache-to : type=gha,mode=max,scope=node
10798 uses : softprops/action-gh-release@v2
10899 with :
109100 body_path : RELEASE_NOTES.md
101+ prerelease : ${{ contains(github.ref_name, '-') }}
0 commit comments