Skip to content

Commit 5b2dd35

Browse files
committed
Create PR build and status badge
1 parent d065752 commit 5b2dd35

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
.DS_Store
2020
# secrets
2121
.env
22+
k8s.yaml
23+
Dockerfile
2224
# non-production files
2325
appsettings.*.json
2426
**/launchSettings.json

.github/workflows/docker-pr.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docker build a PR
2+
3+
on:
4+
push:
5+
branches:
6+
- '!main'
7+
pull_request:
8+
branches:
9+
- '**'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
18+
- uses: actions/checkout@v4
19+
20+
- name: docker build a PR
21+
run: |
22+
docker build -t levelupdevops-pr:${{ github.sha }} .

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Level-up Your DevOps with GitHub Actions and Kubernetes
22
=======================================================
33

4+
[![Docker build, Kubernetes Run](https://github.com/robrich/levelup-devops-github-actions-kubernetes/actions/workflows/docker-kubernetes.yaml/badge.svg)](https://github.com/robrich/levelup-devops-github-actions-kubernetes/actions/workflows/docker-kubernetes.yaml)
5+
46
This is a live demo of GitHub Actions deploying a Docker container to Kubernetes.
57

68
License

0 commit comments

Comments
 (0)