Skip to content

Commit 627e7ac

Browse files
committed
pipeline added for build and push
1 parent 4412418 commit 627e7ac

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pipeline.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pipeline
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
7+
permissions:
8+
packages: write
9+
10+
jobs:
11+
build-and-push-image:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Log in to the Container registry
18+
uses: docker/login-action@v3
19+
with:
20+
registry: https://ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Build and push Docker image
25+
uses: docker/build-push-action@v6
26+
with:
27+
context: .
28+
push: true
29+
tags: "ghcr.io/dreamsofcode-io/zenstats:latest"

0 commit comments

Comments
 (0)