Skip to content

Commit

Permalink
PR build
Browse files Browse the repository at this point in the history
  • Loading branch information
robrich committed Sep 13, 2024
1 parent 5637946 commit 6fcce03
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docker-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Docker Build a PR

on:
push:
branches:
- '!main'
pull_request:
branches:
- '**'
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4

- name: Docker build & push, Kubernetes apply
run: |
docker build -t levelupdevops-pr:${{ github.sha }} .
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Level-up Your DevOps with GitHub Actions and Kubernetes
=======================================================

[![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)

This is a live demo of GitHub Actions deploying a Docker container to Kubernetes.

License
Expand Down

0 comments on commit 6fcce03

Please sign in to comment.