File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1818 - name : Check out repository
1919 uses : actions/checkout@v4
2020
21- - name : Set up Buildah
22- uses : redhat-actions/buildah-build@v2
23- with :
24- image : " "
25- containerfiles : |
26- /dev/null
27- # This just sets up buildah, we'll run our script manually
28-
2921 - name : Login to GitHub Container Registry
3022 uses : docker/login-action@v3
3123 with :
@@ -34,12 +26,18 @@ jobs:
3426 password : ${{ secrets.GITHUB_TOKEN }}
3527
3628 - name : Build Image with buildah script
29+ env :
30+ STORAGE_DRIVER : vfs
3731 run : |
3832 # Run the build script
39- ./devops/build-image.sh
33+ VERSION=$( ./devops/build-image.sh | tail -n2 | head -n1 | cut -d: -f2)
4034
4135 # Tag the image for GHCR
4236 REPO_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
37+ buildah tag claude-code \
38+ "ghcr.io/$REPO_NAME/claude-code:$VERSION" \
39+ "ghcr.io/$REPO_NAME/claude-code:latest"
4340
4441 # Push to GitHub Container Registry
45- buildah push ghcr.io/$REPO_NAME/claude-code
42+ buildah push "ghcr.io/$REPO_NAME/claude-code:$VERSION"
43+ buildah push "ghcr.io/$REPO_NAME/claude-code:latest"
Original file line number Diff line number Diff line change @@ -29,4 +29,6 @@ buildah commit \
2929
3030buildah tag " $IMAGE " " $CLAUDE_VERSION "
3131
32- echo To use the image [${IMAGE} :${CLAUDE_VERSION} ] run /bin/claude
32+ echo Done!
33+ echo ${IMAGE} :${CLAUDE_VERSION}
34+ echo To use this image run /bin/claude
You can’t perform that action at this time.
0 commit comments