Skip to content

Commit c525782

Browse files
committed
devops: attempt to fix pipeline
1 parent 326489d commit c525782

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/build-and-push.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ jobs:
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"

devops/build-image.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ buildah commit \
2929

3030
buildah 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

0 commit comments

Comments
 (0)