This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 3535 load : true
3636 cache-from : type=gha
3737 cache-to : type=gha,mode=max
38- secrets : |
39- gh_token=${{ secrets.GH_CI_TOKEN }}
4038 build-args : |
4139 LATEST_RELEASE=${{ env.LATEST_RELEASE }}
Original file line number Diff line number Diff line change 8585 labels : ${{ steps.docker-metadata.outputs.labels }}
8686 cache-from : type=gha
8787 cache-to : type=gha,mode=max
88- secrets : |
89- gh_token=${{ secrets.GH_CI_TOKEN }}
9088 build-args : |
9189 LATEST_RELEASE=${{ env.LATEST_RELEASE }}
9290 - name : Capture Image Digest
Original file line number Diff line number Diff line change 11.PHONY : clean install format lint test security build all
22CONTAINER_BUILD? =docker buildx build
3- VER? =0.1.0
3+ VER? =0.1.7
44
55clean :
66 rm -rf build/
@@ -30,6 +30,12 @@ build: clean test
3030 poetry build
3131
3232image-build :
33- DOCKER_BUILDKIT=1 $(CONTAINER_BUILD ) -f Dockerfile --secret id=gh_token,env=GH_CI_TOKEN -t codegate . -t ghcr.io/stacklok/codegate:$(VER ) --load
33+ DOCKER_BUILDKIT=1 $(CONTAINER_BUILD ) \
34+ -f Dockerfile \
35+ --build-arg LATEST_RELEASE=$(curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | grep '"zipball_url":' | cut -d '"' -f 4 ) \
36+ -t codegate \
37+ . \
38+ -t ghcr.io/stacklok/codegate:$(VER ) \
39+ --load
3440
3541all : clean install format lint test security build
You can’t perform that action at this time.
0 commit comments