Skip to content

Commit a07cb9a

Browse files
committed
fix: pin ocm cli v2 (#1978)
This is a quick fix to get the CI rolling again as it is blocked right now. More context can be found here #1979 --------- Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
1 parent 9c31944 commit a07cb9a

9 files changed

Lines changed: 46 additions & 4 deletions

File tree

.github/workflows/flake_vendorhash.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
updateVendorHash:
1313
runs-on: ubuntu-latest
14+
environment:
15+
name: release
16+
deployment: false
1417
permissions:
1518
id-token: write
1619
contents: write

.github/workflows/publish-latest.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616

1717
docker_publish:
1818
runs-on: ubuntu-latest
19+
environment:
20+
name: release
21+
deployment: false
1922
permissions:
2023
contents: write
2124
id-token: write
@@ -72,6 +75,9 @@ jobs:
7275
ocm-cli-latest:
7376
name: Build latest ocm-cli
7477
runs-on: large_runner
78+
environment:
79+
name: release
80+
deployment: false
7581
permissions:
7682
contents: write
7783
id-token: write

.github/workflows/publish-to-other-than-github.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
name: Update Homebrew Tap
2020
if: github.event.client_payload.push-to-brew-tap && github.event.client_payload.version != ''
2121
runs-on: ubuntu-latest
22+
environment:
23+
name: release
24+
deployment: false
2225
env:
2326
REPO: open-component-model/homebrew-tap
2427
steps:
@@ -80,6 +83,9 @@ jobs:
8083
name: Update Arch Linux User Repository
8184
if: github.event.client_payload.push-to-aur && github.event.client_payload.version != ''
8285
runs-on: ubuntu-latest
86+
environment:
87+
name: release
88+
deployment: false
8389
steps:
8490
- name: Ensure proper version
8591
run: echo "RELEASE_VERSION=$(echo ${{ github.event.client_payload.version }} | tr -d ['v'])" >> $GITHUB_ENV
@@ -105,6 +111,9 @@ jobs:
105111
name: Update Chocolatey
106112
if: github.event.client_payload.push-to-chocolatey && github.event.client_payload.version != ''
107113
runs-on: windows-latest
114+
environment:
115+
name: release
116+
deployment: false
108117
steps:
109118
- name: Ensure proper version
110119
run: |
@@ -128,6 +137,9 @@ jobs:
128137
push-to-website:
129138
name: Update OCM Website
130139
runs-on: ubuntu-latest
140+
environment:
141+
name: release
142+
deployment: false
131143
if: github.event.client_payload.push-to-website && github.event.client_payload.version != ''
132144
steps:
133145
- name: Ensure proper version

.github/workflows/release-branch.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ permissions:
1515
jobs:
1616
cutoff-preconditions:
1717
runs-on: ubuntu-latest
18+
environment:
19+
name: release
20+
deployment: false
1821
permissions:
1922
contents: read
2023
id-token: write
@@ -63,6 +66,9 @@ jobs:
6366
create-branch:
6467
runs-on: ubuntu-latest
6568
needs: cutoff-preconditions
69+
environment:
70+
name: release
71+
deployment: false
6672
permissions:
6773
contents: write
6874
id-token: write

.github/workflows/release-bump-version.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
create-bump-pr:
1919
name: "Pull Request"
2020
runs-on: ubuntu-latest
21+
environment:
22+
name: release
23+
deployment: false
2124
permissions:
2225
contents: write
2326
id-token: write

.github/workflows/release-drafter.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
permissions:
2929
contents: write
3030
runs-on: ubuntu-latest
31+
environment:
32+
name: release
33+
deployment: false
3134
env:
3235
RELEASE_VERSION: ${{ needs.release-version.outputs.version }}
3336
steps:

.github/workflows/release.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
check:
2828
name: Check Release Preconditions
2929
runs-on: ubuntu-latest
30+
environment:
31+
name: release
32+
deployment: false
3033
permissions:
3134
contents: read
3235
repository-projects: read
@@ -103,6 +106,9 @@ jobs:
103106
- components
104107
name: Release Build
105108
runs-on: large_runner
109+
environment:
110+
name: release
111+
deployment: false
106112
permissions:
107113
contents: write
108114
id-token: write

.github/workflows/retrigger-publish-to-other.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ jobs:
3333
retrigger:
3434
name: Create new "Release Publish Event"
3535
runs-on: ubuntu-latest
36+
environment:
37+
name: release
38+
deployment: false
3639
permissions:
3740
contents: write
3841
id-token: write

cmds/ocm/commands/ocicmds/artifacts/transfer/index_transfer_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ var _ = Describe("Index Transfer", func() {
115115
)
116116

117117
By("pulling the OCI index image from GHCR and pushing it to the local registry")
118-
srcRef := "ghcr.io/open-component-model/cli:main"
119-
dstRef := fmt.Sprintf("%s/ocm-cli:main", registryAddress)
118+
srcRef := "ghcr.io/open-component-model/cli:0.2.0"
119+
dstRef := fmt.Sprintf("%s/ocm-cli:0.2.0", registryAddress)
120120

121121
repoSrc, err := remote.NewRepository(srcRef)
122122
r.NoError(err)
@@ -203,7 +203,7 @@ configurations:
203203
"run", "--rm",
204204
"--network", "host",
205205
"-v", fmt.Sprintf("%s:/work", tempDir),
206-
"ghcr.io/open-component-model/cli:main",
206+
"ghcr.io/open-component-model/cli:0.2.0",
207207
"add", "component-version",
208208
"--repository", "http://" + registryAddress,
209209
"--config", "/work/ocmconfig.yaml",
@@ -220,7 +220,7 @@ configurations:
220220
"run", "--rm",
221221
"--network", "host",
222222
"-v", fmt.Sprintf("%s:/work", tempDir),
223-
"ghcr.io/open-component-model/cli:main",
223+
"ghcr.io/open-component-model/cli:0.2.0",
224224
"get", "component-version",
225225
"--config", "/work/ocmconfig.yaml",
226226
"-oyaml",

0 commit comments

Comments
 (0)