Skip to content

Commit

Permalink
setup #2
Browse files Browse the repository at this point in the history
  • Loading branch information
shreykx committed Dec 21, 2024
1 parent 4488bdb commit 58cb9c8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This file is a template and might need editing before it works on your project.
# This is a sample GitHub Actions workflow that demonstrates a basic 3-step CI/CD pipeline.
# Instead of real tests or scripts, it uses echo commands to simulate the pipeline execution.

name: CI/CD Pipeline

on:
Expand All @@ -14,14 +10,20 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

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

- name: Build Docker image
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/todoapp:main .
- name : Publish to Docker Hub

- name: Publish to Docker Hub
run: docker push ${{ secrets.DOCKER_USERNAME }}/todoapp:main

0 comments on commit 58cb9c8

Please sign in to comment.