Skip to content

Merge pull request #64 from DushanSenadheera/Update-Admin-Movies #63

Merge pull request #64 from DushanSenadheera/Update-Admin-Movies

Merge pull request #64 from DushanSenadheera/Update-Admin-Movies #63

name: Docker Hub Deployment
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: server/
push: true
tags: dcsenadheera/cinema:server-latest
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: client/
push: true
tags: dcsenadheera/cinema:client-latest