Skip to content

Commit 041926a

Browse files
feat: Create ci.yml
1 parent 82e1f39 commit 041926a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI Pipeline
2+
3+
on:
4+
release:
5+
branches: ["main"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Login Dockerhub
14+
env:
15+
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
16+
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
17+
run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
18+
19+
- name: Build the Docker image
20+
run: docker build -t mrsunglasses/linkliberate .
21+
- name: Push to Dockerhub
22+
run: docker push mrsunglasses/linkliberate:latest

0 commit comments

Comments
 (0)