Skip to content

Merge pull request #31 from manthanank/new-changes #40

Merge pull request #31 from manthanank/new-changes

Merge pull request #31 from manthanank/new-changes #40

Workflow file for this run

name: Build and Publish Docker Image to DockerHub
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: DockerHub Login
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKERHUB_USERNAME }}/learn-rxjs
- name: Docker Push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/learn-rxjs