Skip to content

Commit

Permalink
Update workflow for Plexdrive 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rapejim authored Jun 9, 2024
1 parent 107481d commit a484269
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Publish on Docker & ghcr.io
# documentation.

on:
# Scheduled trigger
# Scheduled trigger (every day at 00:00 UTC)
schedule:
- cron: '0 0 * * *'
# On push commit trigger
Expand All @@ -21,7 +21,7 @@ on:

# Allows manual trigger
workflow_dispatch:

# Allows external webhook trigger
repository_dispatch:
types:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
tags: |
type=ref,event=branch
images: |
${{ github.repository }}
${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image with Buildx (don't push on PR)
Expand All @@ -93,15 +93,27 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

# Extract metadata (tags, labels) for Docker (Plexdrive 5.2.1)
# https://github.com/docker/metadata-action
- name: Extract Docker metadata (Plexdrive 5.2.1)
id: meta_pd521
uses: docker/metadata-action@v5
with:
tags: |
type=ref,event=branch,suffix="-pd521"
images: |
${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image (Plexdrive 5.2.1) with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
- name: Build and push Docker image (Plexdrive 5.2.1)
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
build-args: |
PLEXDRIVE_VERSION='5.2.1'
tags: ${{ steps.meta.outputs.tags }}-pd521
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta_pd521.outputs.tags }}
labels: ${{ steps.meta_pd521.outputs.labels }}

0 comments on commit a484269

Please sign in to comment.