We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 671cbc9 commit 222571aCopy full SHA for 222571a
.github/workflows/build.yml
@@ -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
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
25
+ context:
26
+ file: ./dockerfiles/Dockerfile.kubesnap
27
+ push: true
28
+ tags: kingaiva/kubesnap:dev
0 commit comments