Skip to content

Commit

Permalink
Add docker publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Jan 6, 2025
1 parent 2ceb2e6 commit 80f6fd0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- 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 80f6fd0

Please sign in to comment.