Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AIWithShrey authored Jul 13, 2024
1 parent fca9606 commit c9a09b7
Showing 1 changed file with 9 additions and 25 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,17 @@
name: Build and Push Docker Image
name: ci

on:
push:
branches:
- main
pull_request:
branches:
- main
branches: main

jobs:
build:
login:
runs-on: ubuntu-latest

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

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

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
context: .
push: true
tags: shreym/insightful:latest
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c9a09b7

Please sign in to comment.