File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 5252 - name : checks
5353 run : make checks
5454 - name : gosec
55- run : make go-sec
55+ run : make gosec
5656 - name : build
5757 run : make image
5858
Original file line number Diff line number Diff line change 99 image :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
13-
14- - name : Build
15- run : |
16- scripts/install-tools.sh
17- make image
12+ - uses : actions/checkout@v4
1813 - name : Push
1914 run : |
2015 echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
21- make image-push image-push-latest
16+ make image image-push
Original file line number Diff line number Diff line change 4444 GOOS=$(GOOS ) GOARCH=$(ARCH ) go build -o build/chaincode-builder ./cmd/ibp-builder
4545 GOOS=$(GOOS ) GOARCH=$(ARCH ) go build -o build/chaincode-builder-client ./cmd/ibp-builder-client
4646
47- image : login
47+ image : # # Builds a x86 based image
4848 @go mod vendor
4949 docker build --rm . -f Dockerfile $(BUILD_ARGS ) -t $(IMAGE ) :$(TAG ) -$(ARCH )
5050 docker tag $(IMAGE ) :$(TAG ) -$(ARCH ) $(IMAGE ) :latest-$(ARCH )
@@ -53,11 +53,7 @@ image-nologin:
5353 @go mod vendor
5454 docker build --rm . -f Dockerfile $(BUILD_ARGS ) -t $(IMAGE ) :$(TAG ) -$(ARCH )
5555 docker tag $(IMAGE ) :$(TAG ) -$(ARCH ) $(IMAGE ) :latest-$(ARCH )
56-
57- login :
58- echo $(DOCKER_PASSWORD ) | docker login -u $(DOCKER_USERNAME ) --password-stdin $(DOCKER_IMAGE_REPO )
59-
60- image-push : login
56+ image-push :
6157 docker push $(IMAGE ) :$(TAG ) -$(ARCH )
6258
6359unit-tests :
You can’t perform that action at this time.
0 commit comments