Skip to content

Commit

Permalink
fix(ci): fix inconsistencies
Browse files Browse the repository at this point in the history
- use  instead of  in build.yml
- update release.yml to remove set-output deprecated utility
- update actions/checkout to v4

Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Nov 22, 2023
1 parent b631315 commit e4f51aa
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
19 changes: 9 additions & 10 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: Shellcheck
uses: reviewdog/action-shellcheck@v1
Expand All @@ -42,14 +42,13 @@ jobs:
reporter: github-pr-review
path: '.'
pattern: '*.sh'
exclude: './vendor/*'

upgrade:
runs-on: ubuntu-latest
needs: ['lint','upgrade-e2e']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down Expand Up @@ -83,7 +82,7 @@ jobs:
ghcr.io/${{ env.IMAGE_ORG }}/upgrade
tags: |
type=raw,value=latest,enable=false
type=raw,value=${{ env.IMAGE_TAG }}
type=raw,value=${{ env.TAG }}
- name: Print Tag info
run: |
Expand Down Expand Up @@ -141,7 +140,7 @@ jobs:
needs: ['lint', 'migration-e2e']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down Expand Up @@ -175,7 +174,7 @@ jobs:
ghcr.io/${{ env.IMAGE_ORG }}/migrate
tags: |
type=raw,value=latest,enable=false
type=raw,value=${{ env.IMAGE_TAG }}
type=raw,value=${{ env.TAG }}
- name: Print Tag info
run: |
Expand Down Expand Up @@ -242,7 +241,7 @@ jobs:
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: verify license
run: make check-license
Expand All @@ -262,7 +261,7 @@ jobs:
kubernetes: [v1.27.3]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down Expand Up @@ -297,7 +296,7 @@ jobs:
engine: [cstor, jiva]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down Expand Up @@ -349,7 +348,7 @@ jobs:
needs: ['unit-tests']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down
13 changes: 6 additions & 7 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: Shellcheck
uses: reviewdog/action-shellcheck@v1
Expand All @@ -41,14 +41,13 @@ jobs:
reporter: github-pr-review
path: '.'
pattern: '*.sh'
exclude: './vendor/*'

upgrade:
runs-on: ubuntu-latest
needs: ['lint']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -76,7 +75,7 @@ jobs:
needs: ['lint']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -111,7 +110,7 @@ jobs:
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: verify license
run: make check-license
Expand All @@ -131,7 +130,7 @@ jobs:
kubernetes: [v1.27.3]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down Expand Up @@ -162,7 +161,7 @@ jobs:
engine: [cstor, jiva]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down
8 changes: 4 additions & 4 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 @@ -42,7 +42,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 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 @@ -129,7 +129,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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# vendor/

# IDE files
.idea/
**/.idea

0 comments on commit e4f51aa

Please sign in to comment.