Skip to content

Commit

Permalink
adds workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
auhlig committed Dec 11, 2024
1 parent 497da3e commit e7331d9
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker build and push to ghcr

on:
push:
branches:
- main

jobs:
push-image:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.GITHUB_ACTOR }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push Docker image to GHCR
run: make docker-build docker-push
20 changes: 20 additions & 0 deletions .github/workflows/docker-build-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Docker Build on PR

on:
pull_request:
branches-ignore:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
run: make docker-build

0 comments on commit e7331d9

Please sign in to comment.