Skip to content

Merge pull request #4 from Daoud-Hussain/workflows/deploy #2

Merge pull request #4 from Daoud-Hussain/workflows/deploy

Merge pull request #4 from Daoud-Hussain/workflows/deploy #2

Workflow file for this run

name: Deploy
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Building docker image"
run: docker build -t daoudhussaindev/next-js-app .
- name: "Login Docker"
run: echo "${{secrets.DOCKER_PASSWORD}}" | docker login -u ${{secrets.DOCKER_USERNAME}} --password-stdin
- name: "Pushing Image to dockerhub"
run: docker push daoudhussaindev/next-js-app:latest