Skip to content

Commit

Permalink
Add docker publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Jan 6, 2025
1 parent 2ceb2e6 commit 8fc3c33
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Publish

on:
push:
branches: ["main"]

jobs:
docker-build:
runs-on: ubuntu-24.04
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t "${REGISTRY}/${IMAGE_NAME}:main" .
- name: Push Docker image
run: docker push "${REGISTRY}/${IMAGE_NAME}:main"

0 comments on commit 8fc3c33

Please sign in to comment.