Skip to content

- docker login added. #2

- docker login added.

- docker login added. #2

name: Docker Image CI
on:
push:
branches: [ "adding-readme" ]
pull_request:
branches: [ "adding-readme" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker compose build
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Push to Docker hub
run: docker compose push