Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded all actions to latest versions #24

Merged
merged 2 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
garethahealy marked this conversation as resolved.
Show resolved Hide resolved
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
85 changes: 41 additions & 44 deletions .github/workflows/pr-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ jobs:
fi

- name: Verify Semver Bundle Version
uses: rubenesp87/semver-validation-action@0.0.6
uses: rubenesp87/semver-validation-action@0.1.0
with:
version: "${{ steps.set-variables-image.outputs.bundle_version }}"

- name: Verify Semver Helm Chart Version
uses: rubenesp87/semver-validation-action@0.0.6
uses: rubenesp87/semver-validation-action@0.1.0
with:
version: "${{ steps.set-variables-image.outputs.helmchart_version }}"

Expand All @@ -109,22 +109,22 @@ jobs:
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT

- name: Set up Go 1.x
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Go Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
Expand All @@ -145,11 +145,8 @@ jobs:
# Controller-gen
make controller-gen

# Kustomize
make kustomize

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this because CI was failing. make bundle also runs kustomize so was getting "file exists" error. felt like the best place to fix this issue but happy to revert/change

- name: Upload Support Binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: support-binaries
path: ${{ steps.set-variables.outputs.bin_dir }}
Expand Down Expand Up @@ -187,28 +184,28 @@ jobs:
BUNDLE_IMAGE_REGISTRY: ${{ needs.setup.outputs.bundle_image_registry }}

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Go Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Download Support Binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: support-binaries
path: ${{ needs.setup.outputs.bin_dir }}
Expand Down Expand Up @@ -269,7 +266,7 @@ jobs:
mv bin/manager dist/${{ env.REPOSITORY_NAME }}-manager-${{ env.OPERATOR_VERSION }}-${{ steps.setup-build-step.outputs.platform_os }}-${{ steps.setup-build-step.outputs.platform_arch }}

- name: Upload Dist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
Expand All @@ -290,28 +287,28 @@ jobs:
BUNDLE_IMAGE_REPOSITORY: "${{ needs.setup.outputs.bundle_image_registry }}/${{ needs.setup.outputs.bundle_image_repository_name }}"
BUNDLE_IMAGE_REGISTRY: ${{ needs.setup.outputs.bundle_image_registry }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Go Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Download Binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: support-binaries
path: ${{ needs.setup.outputs.bin_dir }}
Expand Down Expand Up @@ -370,7 +367,7 @@ jobs:
rm -Rf ${{ env.REPOSITORY_NAME }}-bundle-${{ env.OPERATOR_VERSION }}-${{ steps.setup-build-step.outputs.platform_os }}-${{ steps.setup-build-step.outputs.platform_arch }}

- name: Upload Dist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
Expand All @@ -385,28 +382,28 @@ jobs:
HELM_RELEASE_VERSION: ${{ needs.setup.outputs.helmchart_version }}
OPERATOR_IMAGE_REPOSITORY: "${{ needs.setup.outputs.operator_image_registry }}/${{ needs.setup.outputs.operator_image_repository_name }}"
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Go Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Download Binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: support-binaries
path: ${{ needs.setup.outputs.bin_dir }}
Expand All @@ -431,7 +428,7 @@ jobs:
helm package -d dist ./charts/${{ env.REPOSITORY_NAME }}

- name: Upload Dist
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
Expand All @@ -444,28 +441,28 @@ jobs:
env:
REPOSITORY_NAME: ${{ needs.setup.outputs.repository_name }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Go Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Download Binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: support-binaries
path: ${{ needs.setup.outputs.bin_dir }}
Expand Down Expand Up @@ -500,28 +497,28 @@ jobs:
HELM_RELEASE_VERSION: ${{ needs.setup.outputs.helmchart_version }}
OPERATOR_IMAGE_REPOSITORY: "${{ needs.setup.outputs.operator_image_registry }}/${{ needs.setup.outputs.operator_image_repository_name }}"
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.GO_VERSION }}

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Go Build Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}

- name: Go Mod Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ needs.setup.outputs.go_mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}

- name: Download Binaries
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: support-binaries
path: ${{ needs.setup.outputs.bin_dir }}
Expand Down
Loading