Skip to content

Commit

Permalink
Merge pull request #42 from DushanSenadheera/dev
Browse files Browse the repository at this point in the history
add dockerhub pipeline
  • Loading branch information
DushanSenadheera authored May 11, 2024
2 parents 655727d + 9d2edc8 commit cc08b6d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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/rover:server-latest

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: client/
push: true
tags: dcsenadheera/rover:client-latest

0 comments on commit cc08b6d

Please sign in to comment.