Skip to content

Commit

Permalink
Add GitHub action to publish Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbitter committed Feb 2, 2024
1 parent f2c9348 commit 8119064
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Docker Image

on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Build the Docker image
working-directory: path
run: docker build . -t vincentbitter/koreader-calibre-web-sync:latest

- name: Log into Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push the images to Docker Hub
run: docker push vincentbitter/koreader-calibre-web-sync

0 comments on commit 8119064

Please sign in to comment.