Skip to content

Commit

Permalink
workflow folder stucture added
Browse files Browse the repository at this point in the history
  • Loading branch information
SwarnenduG07 committed Aug 17, 2024
1 parent 07a8dec commit 8228bc9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy to Docker Hub

on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: check Out Repo
uses: actions/checkout@v2

- name: Log in 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: .
file: ./Dockerfile.user
push: true
tags: swarnendug07/fluxcraft:v1

- name: Verify Pushed Image
run: docker pull swarnendug07/fluxcraft:v1

0 comments on commit 8228bc9

Please sign in to comment.