Skip to content

Updated Dockerfile

Updated Dockerfile #1

Workflow file for this run

name: Docker Build & Push
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build & Push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: aryansharma04/systemmonitoring:latest
cache-from: type=registry,ref=aryansharma04/systemmonitoring:cache
cache-to: type=registry,ref=aryansharma04/systemmonitoring:cache,mode=max