Skip to content

Commit

Permalink
Add Docker image and auto publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
hwittenborn committed Jun 22, 2023
1 parent 4d957a4 commit ad5f106
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Docker image
on: push

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: latest
labels: "ghcr.io/${{ github.repository }}"
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM linuxserver/snapdrop:version-eac78009
COPY index.html /app/www/client/index.html
COPY style.css /app/www/client/styles.css

0 comments on commit ad5f106

Please sign in to comment.