Skip to content

Commit

Permalink
chore(github-actions): bump up github action workflow step dependenci…
Browse files Browse the repository at this point in the history
…es (#173)

* chore(github-actions): bump up github action workflow step dependency

Signed-off-by: Abhinandan Purkait <[email protected]>

* chore(code formatting): format the code with 1.19 version

Signed-off-by: Abhinandan Purkait <[email protected]>

---------

Signed-off-by: Abhinandan Purkait <[email protected]>
  • Loading branch information
Abhinandan-Purkait authored Nov 23, 2023
1 parent b70c64c commit b35af76
Show file tree
Hide file tree
Showing 19 changed files with 322 additions and 223 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: License Check
run: make license-check
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Unit test
run: make test
Expand All @@ -62,12 +62,12 @@ jobs:
needs: ['lint', 'unit-test']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.15
uses: actions/setup-go@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.15.15
go-version: 1.19.13

- name: Build provisioner-nfs image
run: make provisioner-nfs-image
Expand All @@ -80,11 +80,14 @@ jobs:
sudo apt-get update && sudo apt-get install -y nfs-common
- name: Setup Minikube-Kubernetes
uses: manusa/actions-setup-minikube@v2.7.2
uses: medyagh/setup-minikube@latest
with:
minikube version: v1.29.0
kubernetes version: v1.23.16
start args: '--install-addons=false'
cache: false
minikube-version: 1.31.1
driver: none
kubernetes-version: ${{ matrix.kubernetes }}
cni: calico
start-args: '--install-addons=false'

- name: Installation
run: |
Expand All @@ -99,12 +102,12 @@ jobs:
needs: ['lint', 'unit-test']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.15
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.15.15
go-version: 1.19.13

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand All @@ -124,21 +127,20 @@ jobs:
- name: Set Build Date
id: date
run: |
echo "::set-output name=DATE::$(date -u +'%Y-%m-%dT%H:%M:%S%Z')"
echo "DATE=$(date -u +'%Y-%m-%dT%H:%M:%S%Z')" >> $GITHUB_OUTPUT
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
uses: docker/metadata-action@v4
with:
# add each registry to which the image needs to be pushed here
images: |
${{ env.IMAGE_ORG }}/provisioner-nfs
quay.io/${{ env.IMAGE_ORG }}/provisioner-nfs
ghcr.io/${{ env.IMAGE_ORG }}/provisioner-nfs
tag-latest: false
tag-custom-only: true
tag-custom: |
${{ env.TAG }}
tags: |
type=raw,value=latest,enable=false
type=raw,value=${{ env.TAG }}
- name: Print Tags
run: |
Expand Down Expand Up @@ -194,7 +196,7 @@ jobs:
needs: ['lint', 'unit-test']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand All @@ -213,17 +215,16 @@ jobs:
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
uses: docker/metadata-action@v4
with:
# add each registry to which the image needs to be pushed here
images: |
${{ env.IMAGE_ORG }}/nfs-server-alpine
quay.io/${{ env.IMAGE_ORG }}/nfs-server-alpine
ghcr.io/${{ env.IMAGE_ORG }}/nfs-server-alpine
tag-latest: false
tag-custom-only: true
tag-custom: |
${{ env.TAG }}
tags: |
type=raw,value=latest,enable=false
type=raw,value=${{ env.TAG }}
- name: Print Tags
run: |
Expand Down Expand Up @@ -274,7 +275,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/chart-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@v3
with:
version: v3.5.0
version: v3.12.1

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: '3.10'
check-latest: true

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.0.1
uses: helm/chart-testing-action@v2.6.0

- name: Run chart-testing (list-changed)
id: list-changed
Expand All @@ -45,7 +46,7 @@ jobs:
run: ct lint --config ct.yml

- name: Create kind cluster
uses: helm/kind-action@v1.2.0
uses: helm/kind-action@v1.8.0
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
Expand Down
31 changes: 17 additions & 14 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: License Check
run: make license-check
Expand All @@ -41,7 +41,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Unit test
run: make test
Expand All @@ -59,12 +59,12 @@ jobs:
needs: ['lint', 'unit-test']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.15
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.15.15
go-version: 1.19.13

- name: Build provisioner-nfs image
run: make provisioner-nfs-image
Expand All @@ -77,11 +77,14 @@ jobs:
sudo apt-get update && sudo apt-get install -y nfs-common
- name: Setup Minikube-Kubernetes
uses: manusa/actions-setup-minikube@v2.7.2
uses: medyagh/setup-minikube@latest
with:
minikube version: v1.29.0
kubernetes version: v1.23.16
start args: '--install-addons=false'
cache: false
minikube-version: 1.31.1
driver: none
kubernetes-version: ${{ matrix.kubernetes }}
cni: calico
start-args: '--install-addons=false'

- name: Installation
run: |
Expand All @@ -96,12 +99,12 @@ jobs:
needs: ['lint', 'unit-test']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.15
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.15.15
go-version: 1.19.13

- name: Setup QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -129,7 +132,7 @@ jobs:
needs: ['lint', 'unit-test']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -156,7 +159,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build the nfs-e2e image
uses: docker/build-push-action@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -22,12 +22,12 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@v3
with:
version: v3.5.0
version: v3.12.1

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand All @@ -41,20 +41,20 @@ jobs:
- name: Set Build Date
id: date
run: |
echo "::set-output name=DATE::$(date -u +'%Y-%m-%dT%H:%M:%S%Z')"
echo "DATE=$(date -u +'%Y-%m-%dT%H:%M:%S%Z')" >> $GITHUB_OUTPUT
- name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
uses: docker/metadata-action@v4
with:
# add each registry to which the image needs to be pushed here
images: |
${{ env.IMAGE_ORG }}/provisioner-nfs
quay.io/${{ env.IMAGE_ORG }}/provisioner-nfs
ghcr.io/${{ env.IMAGE_ORG }}/provisioner-nfs
tag-latest: true
tag-semver: |
{{version}}
tags: |
type=raw,value=latest,enable=true
type=raw,value={{version}}
- name: Print Tags
run: |
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand All @@ -128,7 +128,7 @@ jobs:
- name: Set Build Date
id: date
run: |
echo "::set-output name=DATE::$(date -u +'%Y-%m-%dT%H:%M:%S%Z')"
echo "DATE=$(date -u +'%Y-%m-%dT%H:%M:%S%Z')" >> $GITHUB_OUTPUT
- name: Docker meta
id: docker_meta
Expand Down
Loading

0 comments on commit b35af76

Please sign in to comment.