Create a workflow to build image
This commit is contained in:
41
.github/workflows/image.yml
vendored
Normal file
41
.github/workflows/image.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
name: Publish Multi-platform Docker Image to Github Container Registry
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Cache Docker layers
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: ghcr.io/debridmediamanager/zurg:latest
|
||||||
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||||
@@ -83,6 +83,8 @@ docker run -v ./config.yml:/app/config.yml -v zurgdata:/app/data -p 9999:9999 de
|
|||||||
|
|
||||||
### with rclone
|
### with rclone
|
||||||
|
|
||||||
|
You will need to create a `media` directory to make the rclone mount work.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
@@ -117,8 +119,6 @@ volumes:
|
|||||||
zurgdata:
|
zurgdata:
|
||||||
```
|
```
|
||||||
|
|
||||||
You will need to create a `media` directory to make the rclone mount work.
|
|
||||||
|
|
||||||
Together with this `docker-compose.yml` you will need this `rclone.conf` as well on the same directory.
|
Together with this `docker-compose.yml` you will need this `rclone.conf` as well on the same directory.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user