Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
The ${{ Env.KO_VERSION }} placeholder appears to be invalid. Instead,
just reference the environment variable normally.

Signed-off-by: Jason Hall <jasonhall@redhat.com>
  • Loading branch information
imjasonh committed Oct 14, 2021
1 parent 8588a92 commit b1ee40f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/kind-e2e-cosigned.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2021 The Sigstore Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Cosigned KinD E2E

on:
Expand Down Expand Up @@ -46,13 +60,12 @@ jobs:
KO_VERSION: 0.9.3

steps:
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
- uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: 1.17.x

- name: Install ko
run: GOBIN=/usr/local/bin go install github.com/google/ko@v${{ .Env.KO_VERSION }}
run: go install github.com/google/ko@v${KO_VERSION}

- name: Install yq
uses: mikefarah/yq@master
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#
# Copyright 2021 The Sigstore Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -28,7 +27,6 @@ jobs:
env:
KO_VERSION: 0.9.3


steps:
- uses: actions/checkout@v2
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
Expand All @@ -51,7 +49,7 @@ jobs:
with:
go-version: '1.17.x'
- name: install ko
run: GOBIN=/usr/local/bin go install github.com/google/ko@v${{ .Env.KO_VERSION }}
run: go install github.com/google/ko@v${KO_VERSION}
- name: setup kind cluster
run: |
go install sigs.k8s.io/kind@v0.11.1
Expand Down

0 comments on commit b1ee40f

Please sign in to comment.