Skip to content

Commit

Permalink
feat(usage): update ua to ga4 analytics
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Dec 6, 2023
1 parent a4a9273 commit a91215d
Show file tree
Hide file tree
Showing 29 changed files with 835 additions and 410 deletions.
53 changes: 27 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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 @@ -45,13 +45,13 @@ jobs:
if: ${{ (github.event.ref_type != 'tag') }}
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16.6
go-version: 1.19.13

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

- name: Unit test
run: make test
Expand All @@ -66,10 +66,10 @@ jobs:
runs-on: ubuntu-latest
needs: ['lint', 'unit-test']
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16.6
go-version: 1.19.13

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand All @@ -89,21 +89,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-localpv
quay.io/${{ env.IMAGE_ORG }}/provisioner-localpv
ghcr.io/${{ env.IMAGE_ORG }}/provisioner-localpv
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 @@ -141,7 +140,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Build and Push multi-arch Image
uses: docker/build-push-action@v4
Expand All @@ -163,12 +162,12 @@ jobs:
needs: ['lint', 'unit-test']
strategy:
matrix:
kubernetes: [v1.23.16]
kubernetes: [v1.27.2]
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16.6
go-version: 1.19.13

- name: Set up Docker Buildx
id: buildx
Expand All @@ -177,7 +176,7 @@ jobs:
version: v0.5.1

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

- name: Build Image
uses: docker/build-push-action@v4
Expand All @@ -190,13 +189,15 @@ jobs:
tags: |
openebs/provisioner-localpv:ci
- name: Set up Minikube
uses: manusa/actions-setup-minikube@v2.7.2
- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
with:
minikube version: 'v1.29.0'
kubernetes version: '${{ matrix.kubernetes }}'
cache: false
minikube-version: 1.31.1
driver: none
start args: '--install-addons=false'
kubernetes-version: ${{ matrix.kubernetes }}
cni: calico
start-args: '--install-addons=false'

- name: Set up infra for integration test
run: |
Expand All @@ -215,7 +216,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.4.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.yaml

- 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: Add dependency chart repos
Expand Down
42 changes: 22 additions & 20 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: License Check
run: make license-check

unit-test:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16.6
go-version: 1.19.13

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

- name: Unit test
run: make test
Expand All @@ -63,10 +63,10 @@ jobs:
runs-on: ubuntu-latest
needs: ['lint', 'unit-test']
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16.6
go-version: 1.19.13

- name: Setup QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -80,7 +80,7 @@ jobs:
version: v0.5.1

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

- name: Build multi-arch Image
uses: docker/build-push-action@v4
Expand All @@ -98,12 +98,12 @@ jobs:
needs: ['lint', 'unit-test']
strategy:
matrix:
kubernetes: [v1.23.16]
kubernetes: [v1.27.2]
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v3
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.16.6
go-version: 1.19.13

- name: Set up Docker Buildx
id: buildx
Expand All @@ -112,7 +112,7 @@ jobs:
version: v0.5.1

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

- name: Build Image
uses: docker/build-push-action@v4
Expand All @@ -125,13 +125,15 @@ jobs:
tags: |
openebs/provisioner-localpv:ci
- name: Set up Minikube
uses: manusa/actions-setup-minikube@v2.7.2
- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
with:
minikube version: 'v1.29.0'
kubernetes version: '${{ matrix.kubernetes }}'
cache: false
minikube-version: 1.31.1
driver: none
start args: '--install-addons=false'
kubernetes-version: ${{ matrix.kubernetes }}
cni: calico
start-args: '--install-addons=false'

- name: Set up infra for integration test
run: |
Expand All @@ -148,7 +150,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Build the localpv-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,16 +22,16 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
uses: azure/setup-helm@v3
with:
version: v3.4.0
version: v3.12.1

- name: Add dependency chart repos
run: |
helm repo add openebs-ndm https://openebs.github.io/node-disk-manager
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.1.0
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.CR_TOKEN }}"
with:
Expand Down
12 changes: 6 additions & 6 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-localpv
quay.io/${{ env.IMAGE_ORG }}/provisioner-localpv
ghcr.io/${{ env.IMAGE_ORG }}/provisioner-localpv
tag-latest: true
tag-semver: |
{{version}}
tags: |
type=raw,value=latest,enable=true
type=raw,value={{version}}
- name: Print Tags
run: |
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ integration-test:
# Requires KUBECONFIG env and Ginkgo binary
.PHONY: device-integration-test
device-integration-test:
@cd tests && sudo -E env "PATH=${PATH}" ginkgo -v -failFast -skip="TEST HOSTPATH.*"
@cd tests && sudo -E env "PATH=${PATH}" ginkgo -skip="TEST HOSTPATH.*" -v -failFast

# Requires KUBECONFIG env and Ginkgo binary
.PHONY: hostpath-integration-test
hostpath-integration-test:
@cd tests && sudo -E env "PATH=${PATH}" ginkgo -v -failFast -focus="TEST HOSTPATH.*"
@cd tests && sudo -E env "PATH=${PATH}" ginkgo -focus="TEST HOSTPATH.*" -v -failFast

.PHONY: format
format:
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ set -e
TEST_NAME=$1


if [[ `git diff --shortstat | wc -l` != 0 ]]; then
if [[ `git diff --shortstat | wc -l | tr -d ' '` != 0 ]]; then
echo "Some files got changed after $1";printf "\n";git diff --stat;printf "\n"; exit 1;
fi
2 changes: 1 addition & 1 deletion buildscripts/provisioner-localpv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#See the License for the specific language governing permissions and
#limitations under the License.
#
FROM alpine:3.12
FROM alpine:3.14.8

RUN apk add --no-cache \
iproute2 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
FROM golang:1.16.6 as build
FROM golang:1.19.13 as build

ARG BRANCH
ARG RELEASE_TAG
Expand Down Expand Up @@ -42,7 +42,7 @@ COPY . .

RUN make provisioner-localpv

FROM alpine:3.12
FROM alpine:3.14.8

ARG DBUILD_DATE
ARG DBUILD_REPO_URL
Expand Down
2 changes: 1 addition & 1 deletion buildscripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

set -e

# architecute on which tests need to be run
# architecture on which tests need to be run
ARCH=$1

if [ -z "$ARCH" ]; then
Expand Down
Loading

0 comments on commit a91215d

Please sign in to comment.