Skip to content

Bump ubuntu from 23.04 to 24.04 #132

Bump ubuntu from 23.04 to 24.04

Bump ubuntu from 23.04 to 24.04 #132

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