Skip to content

Commit

Permalink
add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash1000x committed Aug 5, 2024
1 parent ccaeb48 commit 9cbd81f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and push on Docker Hub

on:
push:
branches:
- main

jobs:
build-and-push:
runs-on: ubuntu-latest
stpeps:
- name: check Out Repo
uses: actions/checkout@v4

- name: login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build Docker Image
run: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile.user
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/rapid-deploy:latest

0 comments on commit 9cbd81f

Please sign in to comment.