added step to install Kubernetes Metrics Server #135
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |