Skip to content

added step to install Kubernetes Metrics Server #135

added step to install Kubernetes Metrics Server

added step to install Kubernetes Metrics Server #135

name: Build Docker image on PR
on:
pull_request:
branches: [main]
jobs:
build_dev_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push Docker image
env:
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
run: |
export IMAGE_TAG="$(date +%F)-$(git rev-parse --short HEAD)"
docker build . --file Dockerfile --tag rchakode/kube-opex-analytics:$IMAGE_TAG
echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_USERNAME --password-stdin
docker push rchakode/kube-opex-analytics:$IMAGE_TAG