Skip to content

Commit 222571a

Browse files
enable github actions build
1 parent 671cbc9 commit 222571a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: build-image-and-push
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
8+
jobs:
9+
build:
10+
name: build-image-and-push
11+
runs-on: self-hosted
12+
steps:
13+
- name: Check out the repo
14+
uses: actions/checkout@v4
15+
16+
- name: Login to dockerhub
17+
uses: docker/login-action@v3
18+
with:
19+
username: ${{ secrets.DOCKER_USERNAME }}
20+
password: ${{ secrets.DOCKER_TOKEN }}
21+
22+
- name: Build and push kubesnap
23+
uses: docker/build-push-action@v5
24+
with:
25+
context:
26+
file: ./dockerfiles/Dockerfile.kubesnap
27+
push: true
28+
tags: kingaiva/kubesnap:dev

0 commit comments

Comments
 (0)