File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 23
23
go-version : ' 1.x'
24
24
- name : Install Dependencies
25
25
run : sudo apt-get install make curl jq
26
+ - name : Install pack
27
+ run : |
28
+ sudo add-apt-repository ppa:cncf-buildpacks/pack-cli
29
+ sudo apt-get update
30
+ sudo apt-get install pack-cli
26
31
- name : Test
27
32
run : make test
28
33
env :
Original file line number Diff line number Diff line change 74
74
75
75
.PHONY : upgrade-pack
76
76
upgrade-pack : pack-version
77
- @echo " > Upgrading pack library version $( PACK_VERSION) "
78
- cd tools; go get github.com/buildpacks/pack@v$(PACK_VERSION )
77
+ @if [ ! $( ` which pack` && ` pack --version | cut -d ' +' -f 1` ! = " $( PACK_VERSION) " ) ]; then \
78
+ echo " > Upgrading pack library version $( PACK_VERSION) " ; \
79
+ cd tools; go get github.com/buildpacks/pack@v$(PACK_VERSION ) ; \
80
+ fi
79
81
80
82
.PHONY : install-pack-cli
81
83
install-pack-cli : export PACK_BIN:=$(shell which pack)
You can’t perform that action at this time.
0 commit comments