Skip to content

Commit

Permalink
👷 Added pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV authored Nov 8, 2024
1 parent c8e9f0c commit 211c25e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]

jobs:

build-and-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Build the Docker image
run: docker build . --file ./OpenMediaServer/Dockerfile --tag ghcr.io/${{ github.repository_owner }}/openmediaserver:latest

- name: Log in to GitHub Docker Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push Docker image to GitHub Packages
run: docker push ghcr.io/${{ github.repository_owner }}/openmediaserver:latest

0 comments on commit 211c25e

Please sign in to comment.