Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
emerkle826 committed Mar 6, 2024
1 parent 1d8623c commit 7b6514d
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helm_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Update PATH
run: |
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/kind_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
outputs:
image_tag: ${{ steps.parse_image_tag.outputs.image_tag }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Parse image version
id: parse_image_tag
Expand All @@ -55,7 +55,7 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Build image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
Expand All @@ -66,7 +66,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Upload k8ssandra-operator image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: k8ssandra-operator
path: /tmp/k8ssandra-operator.tar
Expand Down Expand Up @@ -122,14 +122,14 @@ jobs:
run: |
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
Expand All @@ -142,9 +142,9 @@ jobs:
- name: Install Kind
run: go get sigs.k8s.io/kind
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Download k8ssandra-operator image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: k8ssandra-operator
path: /tmp
Expand All @@ -169,7 +169,7 @@ jobs:
echo "uploaddir_name=$uploaddir_name" >> $GITHUB_ENV
- name: Archive k8s logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: k8s-logs-${{ env.uploaddir_name }}
path: ./build/test
22 changes: 11 additions & 11 deletions .github/workflows/kind_multicluster_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ jobs:
image_tag: ${{ steps.parse_image_tag.outputs.image_tag }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Parse image version
id: parse_image_tag
run: echo "image_tag=$(yq eval '.images[0].newTag' config/deployments/default/kustomization.yaml)" >> $GITHUB_OUTPUT
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Build image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
Expand All @@ -47,7 +47,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Upload k8ssandra-operator image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: k8ssandra-operator
path: /tmp/k8ssandra-operator.tar
Expand Down Expand Up @@ -91,14 +91,14 @@ jobs:
run: |
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
Expand All @@ -111,9 +111,9 @@ jobs:
- name: Install Kind
run: go get sigs.k8s.io/kind
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Download k8ssandra-operator image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: k8ssandra-operator
path: /tmp
Expand All @@ -138,7 +138,7 @@ jobs:
echo "uploaddir_name=$uploaddir_name" >> $GITHUB_ENV
- name: Archive k8s logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: k8s-logs-${{ env.uploaddir_name }}
path: ./build/test
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ jobs:
image_tag: ${{ steps.parse_image_tag.outputs.image_tag }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Parse image version
id: parse_image_tag
run: echo "image_tag=$(yq eval '.images[0].newTag' config/deployments/default/kustomization.yaml)" >> $GITHUB_OUTPUT
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Build image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
Expand All @@ -46,7 +46,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Upload k8ssandra-operator image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: k8ssandra-operator
path: /tmp/k8ssandra-operator.tar
Expand All @@ -69,14 +69,14 @@ jobs:
run: |
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
Expand All @@ -89,9 +89,9 @@ jobs:
- name: Install Kind
run: go get sigs.k8s.io/kind
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Download k8ssandra-operator image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: k8ssandra-operator
path: /tmp
Expand All @@ -116,7 +116,7 @@ jobs:
echo "uploaddir_name=$uploaddir_name" >> $GITHUB_ENV
- name: Archive k8s logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: k8s-logs-${{ env.uploaddir_name }}
path: ./build/test
16 changes: 8 additions & 8 deletions .github/workflows/kuttl_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ jobs:
image_tag: ${{ steps.parse_image_tag.outputs.image_tag }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Parse image version
id: parse_image_tag
run: echo "image_tag=$(yq eval '.images[0].newTag' config/deployments/default/kustomization.yaml)" >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Build Docker image
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
Expand All @@ -48,7 +48,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache
outputs: type=docker,dest=/tmp/k8ssandra-k8ssandra-operator.tar
- name: Upload k8ssandra-operator image
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: k8ssandra-operator
path: /tmp/k8ssandra-k8ssandra-operator.tar
Expand All @@ -65,11 +65,11 @@ jobs:
- test-all-deployments
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Set up Go
uses: actions/setup-go@v3
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Kind kube-proxy issue workaround
run: sudo sysctl net/netfilter/nf_conntrack_max=524288
- name: Download k8ssandra-operator image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: k8ssandra-operator
path: /tmp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout code w/ submodules
with:
submodules: recursive
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
name: Checkout code w/ submodules
with:
submodules: recursive
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
Expand All @@ -23,7 +23,7 @@ jobs:
with:
platforms: 'arm64,arm'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand All @@ -38,7 +38,7 @@ jobs:
echo "TARGET_VERSION=$(echo ${GITHUB_REF#refs/tags/} | awk '{print substr($0,2)}')" >> $GITHUB_ENV
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test_and_build_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
if: github.event_name == 'pull_request'
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name != 'pull_request'
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
cache: true
Expand Down Expand Up @@ -56,13 +56,13 @@ jobs:
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,arm'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
with:
Expand All @@ -86,7 +86,7 @@ jobs:
echo "TAGS=k8ssandra/k8ssandra-operator:${{ steps.vars.outputs.sha_short }},k8ssandra/k8ssandra-operator:${release_prefix}-latest" >> $GITHUB_ENV
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
file: Dockerfile
context: .
Expand Down
Loading

0 comments on commit 7b6514d

Please sign in to comment.