File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 35
35
load : true
36
36
cache-from : type=gha
37
37
cache-to : type=gha,mode=max
38
- secrets : |
39
- gh_token=${{ secrets.GH_CI_TOKEN }}
40
38
build-args : |
41
39
LATEST_RELEASE=${{ env.LATEST_RELEASE }}
Original file line number Diff line number Diff line change 85
85
labels : ${{ steps.docker-metadata.outputs.labels }}
86
86
cache-from : type=gha
87
87
cache-to : type=gha,mode=max
88
- secrets : |
89
- gh_token=${{ secrets.GH_CI_TOKEN }}
90
88
build-args : |
91
89
LATEST_RELEASE=${{ env.LATEST_RELEASE }}
92
90
- name : Capture Image Digest
Original file line number Diff line number Diff line change 1
1
.PHONY : clean install format lint test security build all
2
2
CONTAINER_BUILD? =docker buildx build
3
- VER? =0.1.0
3
+ VER? =0.1.7
4
4
5
5
clean :
6
6
rm -rf build/
@@ -30,6 +30,12 @@ build: clean test
30
30
poetry build
31
31
32
32
image-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
34
40
35
41
all : clean install format lint test security build
You can’t perform that action at this time.
0 commit comments