diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ac596d..e03f92d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Detect No-op Changes id: noop - uses: fkirc/skip-duplicate-actions@v2.0.0 + uses: fkirc/skip-duplicate-actions@v4.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} paths_ignore: '["**.md", "**.png", "**.jpg"]' @@ -38,28 +38,28 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(go env GOCACHE)" + run: echo "cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.go.outputs.cache }} key: ${{ runner.os }}-build-lint-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-lint- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -67,20 +67,14 @@ jobs: - name: Vendor Dependencies run: make vendor vendor.check - # Go version coming with golangci-lint-action may not be our desired - # go version. We deploy our desired go version and then skip go - # installation in golangci-lint-action in the next step as suggested - # in https://github.com/golangci/golangci-lint-action/issues/183 - - uses: actions/setup-go@v2 + + - name: Setup Go (again) + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - # This action uses its own setup-go, which always seems to use the latest - # stable version of Go. We could run 'make lint' to ensure our desired Go - # version, but we prefer this action because it leaves 'annotations' (i.e. - # it comments on PRs to point out linter violations). - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: version: ${{ env.GOLANGCI_VERSION }} skip-go-installation: true @@ -92,28 +86,28 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(go env GOCACHE)" + run: echo "cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.go.outputs.cache }} key: ${{ runner.os }}-build-check-diff-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-check-diff- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -132,7 +126,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true @@ -140,23 +134,23 @@ jobs: run: git fetch --prune --unshallow - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(go env GOCACHE)" + run: echo "cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.go.outputs.cache }} key: ${{ runner.os }}-build-unit-tests-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-unit-tests- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -169,7 +163,7 @@ jobs: run: make -j2 test - name: Publish Unit Test Coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: flags: unittests file: _output/tests/linux_amd64/coverage.txt @@ -181,18 +175,18 @@ jobs: steps: - name: Setup QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: platforms: all - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: version: ${{ env.DOCKER_BUILDX_VERSION }} install: true - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true @@ -200,23 +194,23 @@ jobs: run: git fetch --prune --unshallow - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(go env GOCACHE)" + run: echo "cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.go.outputs.cache }} key: ${{ runner.os }}-build-e2e-tests-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-e2e-tests- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -226,7 +220,7 @@ jobs: - name: Vendor Dependencies run: make vendor vendor.check - - name: Run the end to end tests + - name: Run the end-to-end tests run: make e2e env: # We're using docker buildx, which doesn't actually load the images it @@ -240,18 +234,18 @@ jobs: steps: - name: Setup QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: platforms: all - name: Setup Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 with: version: ${{ env.DOCKER_BUILDX_VERSION }} install: true - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: true @@ -259,23 +253,23 @@ jobs: run: git fetch --prune --unshallow - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Find the Go Build Cache id: go - run: echo "::set-output name=cache::$(go env GOCACHE)" + run: echo "cache=$(go env GOCACHE)" >> $GITHUB_OUTPUT - name: Cache the Go Build Cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.go.outputs.cache }} key: ${{ runner.os }}-build-publish-artifacts-${{ hashFiles('**/go.sum') }} restore-keys: ${{ runner.os }}-build-publish-artifacts- - name: Cache Go Dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: .work/pkg key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }} @@ -290,15 +284,15 @@ jobs: # We're using docker buildx, which doesn't actually load the images it # builds by default. Specifying --load does so. BUILD_ARGS: "--load" - + - name: Publish Artifacts to GitHub - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4 + uses: actions/upload-artifact@v3 with: name: output path: _output/** - name: Login to Upbound - uses: docker/login-action@v1 + uses: docker/login-action@v2 if: env.XPKG_ACCESS_ID != '' with: registry: xpkg.upbound.io @@ -309,4 +303,4 @@ jobs: run: make -j2 publish BRANCH_NAME=${GITHUB_REF##*/} if: env.XPKG_ACCESS_ID != '' env: - GIT_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GIT_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index 769e76a..d34ec3f 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: version: - description: "Release version (e.g. v1.0.5)" + description: "Release version (e.g. v1.0.6)" required: true channel: description: "Release channel" diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index b64e7de..5b80fd2 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: version: - description: "Release version (e.g. v1.0.5)" + description: "Release version (e.g. v1.0.6)" required: true message: description: "Tag message" diff --git a/README.md b/README.md index f8a7bf4..b2ae67f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ To install `provider-http`, you have two options: 1. Using the Crossplane CLI in a Kubernetes cluster where Crossplane is installed: ```console - crossplane xpkg install provider xpkg.upbound.io/crossplane-contrib/provider-http:v1.0.5 + crossplane xpkg install provider xpkg.upbound.io/crossplane-contrib/provider-http:v1.0.6 ``` 2. Manually creating a Provider by applying the following YAML: @@ -20,7 +20,7 @@ To install `provider-http`, you have two options: metadata: name: provider-http spec: - package: "xpkg.upbound.io/crossplane-contrib/provider-http:v1.0.5" + package: "xpkg.upbound.io/crossplane-contrib/provider-http:v1.0.6" ``` ## Supported Resources diff --git a/deploy.yml b/deploy.yml index 62d34da..5a52c8b 100644 --- a/deploy.yml +++ b/deploy.yml @@ -4,7 +4,7 @@ kind: Provider metadata: name: http-provider spec: - package: xpkg.upbound.io/crossplane-contrib/provider-http:v1.0.5 + package: xpkg.upbound.io/crossplane-contrib/provider-http:v1.0.6 controllerConfigRef: name: debug-config