Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AashishNandakumar committed Apr 12, 2024
1 parent 6022b2d commit 230a4d4
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
name: Docker Compose Build and Push
name: ci

on:
push:
branches: [ main ]
branches:
- "main"

jobs:
build-and-push:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

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


- name: Build and push Docker images
run: |
docker-compose build
docker-compose push
env:
DOCKER_REPOSITORY: vedavault
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./docker-compose.yml
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/vedavault:latest

0 comments on commit 230a4d4

Please sign in to comment.