Skip to content

Commit f281068

Browse files
committed
phase 2: enable docker build and push via github actions
1 parent 604a15b commit f281068

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1-
name: omniops-ci
1+
name: OmniOps CI Pipeline
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches:
6+
- main
67

78
jobs:
8-
build:
9+
build-and-push:
910
runs-on: ubuntu-latest
1011

1112
steps:
1213
- name: Checkout code
1314
uses: actions/checkout@v4
1415

15-
- name: Build Docker image
16-
run: docker build -t omniops-app -f docker/Dockerfile .
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
19+
- name: Login to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Build and push Docker image
26+
uses: docker/build-push-action@v5
27+
with:
28+
context: .
29+
file: docker/Dockerfile
30+
push: true
31+
tags: karandeven/omniops-app:latest
32+

0 commit comments

Comments
 (0)