Skip to content

Commit 3bccea7

Browse files
roxanaNandaaron
authored andcommitted
oras fix:
newer version of oras: https://github.com/oras-project/oras/releases/tag/v0.14.0 rename the --manifest-config to --config for push command Signed-off-by: Roxana Nemulescu <[email protected]>
1 parent 5dda12b commit 3bccea7

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/cluster.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
echo "{\"name\":\"foo\",\"value\":\"bar\"}" > config.json
115115
echo "hello world" > artifact.txt
116116
oras push --plain-http localhost:8080/hello-artifact:v2 \
117-
--manifest-config config.json:application/vnd.acme.rocket.config.v1+json \
117+
--config config.json:application/vnd.acme.rocket.config.v1+json \
118118
artifact.txt:text/plain -d -v
119119
rm -f artifact.txt # first delete the file
120120
oras pull --plain-http localhost:8080/hello-artifact:v2 -d -v

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ jobs:
7171
curl -Lo notation.tar.gz https://github.com/notaryproject/notation/releases/download/v0.7.1-alpha.1/notation_0.7.1-alpha.1_linux_amd64.tar.gz
7272
sudo tar xvzf notation.tar.gz -C /usr/bin notation
7373
# install oras
74-
curl -LO https://github.com/oras-project/oras/releases/download/v0.12.0/oras_0.12.0_linux_amd64.tar.gz
74+
curl -LO https://github.com/oras-project/oras/releases/download/v0.14.0/oras_0.14.0_linux_amd64.tar.gz
7575
mkdir -p oras-install/
76-
tar -zxf oras_0.12.0_*.tar.gz -C oras-install/
76+
tar -zxf oras_0.14.0_*.tar.gz -C oras-install/
7777
sudo mv oras-install/oras /usr/bin/
78-
rm -rf oras_0.12.0_*.tar.gz oras-install/
78+
rm -rf oras_0.14.0_*.tar.gz oras-install/
7979
8080
# Initializes the CodeQL tools for scanning.
8181
- name: Initialize CodeQL

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ exporter-minimal: modcheck build-metadata
7171
env CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) go build -o bin/zxp-$(OS)-$(ARCH) -buildmode=pie -tags containers_image_openpgp -v -trimpath ./cmd/zxp
7272

7373
.PHONY: test
74-
test: check-skopeo $(TESTDATA) $(NOTATION)
74+
test: check-skopeo $(TESTDATA) $(NOTATION) $(ORAS)
7575
go test -failfast -tags $(EXTENSIONS),containers_image_openpgp -v -trimpath -race -timeout 15m -cover -coverpkg ./... -coverprofile=coverage-extended.txt -covermode=atomic ./...
7676
go test -failfast -tags containers_image_openpgp -v -trimpath -race -cover -coverpkg ./... -coverprofile=coverage-minimal.txt -covermode=atomic ./...
7777
# development-mode unit tests possibly using failure injection
@@ -106,7 +106,7 @@ $(NOTATION):
106106

107107
$(ORAS):
108108
mkdir -p $(TOOLSDIR)/bin
109-
curl -Lo oras.tar.gz https://github.com/oras-project/oras/releases/download/v0.13.0/oras_0.13.0_linux_amd64.tar.gz
109+
curl -Lo oras.tar.gz https://github.com/oras-project/oras/releases/download/v0.14.0/oras_0.14.0_linux_amd64.tar.gz
110110
tar xvzf oras.tar.gz -C $(TOOLSDIR)/bin oras
111111
rm oras.tar.gz
112112

demos/oras-push-pull.svg

Lines changed: 1 addition & 1 deletion
Loading

pkg/extensions/sync/sync_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func TestORAS(t *testing.T) {
290290

291291
srcURL := strings.Join([]string{sctlr.Server.Addr, "/oras-artifact:v2"}, "")
292292

293-
cmd = exec.Command("oras", "push", "--plain-http", srcURL, "--manifest-config",
293+
cmd = exec.Command("oras", "push", "--plain-http", srcURL, "--config",
294294
"config.json:application/vnd.acme.rocket.config.v1+json", "artifact.txt:text/plain", "-d", "-v")
295295
cmd.Dir = fileDir
296296

test/blackbox/pushpull.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function teardown_file() {
106106
echo "{\"name\":\"foo\",\"value\":\"bar\"}" > config.json
107107
echo "hello world" > artifact.txt
108108
run oras push --plain-http 127.0.0.1:8080/hello-artifact:v2 \
109-
--manifest-config config.json:application/vnd.acme.rocket.config.v1+json artifact.txt:text/plain -d -v
109+
--config config.json:application/vnd.acme.rocket.config.v1+json artifact.txt:text/plain -d -v
110110
[ "$status" -eq 0 ]
111111
rm -f artifact.txt
112112
rm -f config.json

0 commit comments

Comments
 (0)