diff --git a/.ci/Dockerfile b/.ci/Dockerfile index a7960fa3..c655a2d6 100644 --- a/.ci/Dockerfile +++ b/.ci/Dockerfile @@ -12,7 +12,7 @@ # 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. -FROM golang:1.18-alpine AS builder +FROM golang:1.19-alpine@sha256:276692412aea6f9dd6cdc5725b2f1c05bef8df7223811afbc6aa16294e2903f9 AS builder # Install dependencies RUN apk add --no-cache git bash curl zip diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 14201571..6f7974fb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -20,6 +20,10 @@ on: pull_request: branches: [main] +env: + GO_VERSION: 1.19 + OAPI_CODEGEN_VERSION: v1.12.4 + jobs: go: name: Check go tools build @@ -31,7 +35,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.18 + go-version: ${{ env.GO_VERSION }} - name: Check if index-generator build is working run: cd index/generator && bash ./build.sh @@ -45,7 +49,7 @@ jobs: - name: Check index-server code generation run: | export GOPATH=$(go env GOPATH) - go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.12.4 + go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@${{ env.OAPI_CODEGEN_VERSION }} bash index/server/codegen.sh GEN_DIFFS=$(git diff --name-only --diff-filter=ACMRT | grep .gen.go$ | xargs) if [[ ! -z "${GEN_DIFFS}" ]] @@ -83,7 +87,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.18 + go-version: ${{ env.GO_VERSION }} - name: Check license run: | @@ -102,7 +106,7 @@ jobs: run: | cd index/server export GOPATH=$(go env GOPATH) - go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.12.4 + go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@${{ env.OAPI_CODEGEN_VERSION }} bash ./build.sh - name: Test index server @@ -127,7 +131,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.18 + go-version: ${{ env.GO_VERSION }} - name: Setup Minikube uses: manusa/actions-setup-minikube@3856c6fa039819f1c8e7e248b1fc5a8564e354c9 # v2.9.0 with: @@ -139,7 +143,7 @@ jobs: - name: Run the devfile registry integration tests run: | export GOPATH=$(go env GOPATH) - go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.12.4 + go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@${{ env.OAPI_CODEGEN_VERSION }} bash .ci/run_tests_minikube_linux.sh test_staging: @@ -151,7 +155,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.18 + go-version: ${{ env.GO_VERSION }} - name: Run the devfile registry integration tests run: | # Run the integration tests diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 015cdc1d..2c377a7d 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -28,7 +28,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.18 + go-version: 1.19 - name: Run tests run: cd index/server && go test ./... -coverprofile cover.out - name: Codecov diff --git a/.github/workflows/pushimage-next.yaml b/.github/workflows/pushimage-next.yaml index 0629ba4a..3d6a9182 100644 --- a/.github/workflows/pushimage-next.yaml +++ b/.github/workflows/pushimage-next.yaml @@ -30,7 +30,7 @@ jobs: - name: Setup Go environment uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 with: - go-version: 1.18 + go-version: 1.19 - name: Login to Quay uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0 with: diff --git a/README.md b/README.md index 3a1436c3..9de1f3e0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@