Skip to content

Changed branch name again in ci-cd.yml #2

Changed branch name again in ci-cd.yml

Changed branch name again in ci-cd.yml #2

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
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:
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/grafana-prometheus:latest
- name: Deploy to Docker Compose
run: |
docker-compose down
docker-compose up -d