Skip to content

Commit

Permalink
added the ci pipeline for docker image building
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Jun 21, 2024
1 parent e7af5a9 commit a630db8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Pipeline

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

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to github container registry
env:
CR_PAT: ${{secrets.GITHUB_TOKEN}}
run: echo $CR_PAT | docker login ghcr.io -u yashgo0018 --password-stdin
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/yashgo0018/maci-api:latest

0 comments on commit a630db8

Please sign in to comment.