|
|
@ -13,6 +13,18 @@ jobs:
|
|
|
|
- name: Check Out Repo
|
|
|
|
- name: Check Out Repo
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
|
|
|
|
id: buildx
|
|
|
|
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Cache Docker layers
|
|
|
|
|
|
|
|
uses: actions/cache@v2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
path: /tmp/.buildx-cache
|
|
|
|
|
|
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
|
|
|
|
|
|
restore-keys: |
|
|
|
|
|
|
|
|
${{ runner.os }}-buildx-
|
|
|
|
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
@ -24,10 +36,6 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
platforms: all
|
|
|
|
platforms: all
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
|
|
|
|
id: buildx
|
|
|
|
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
- name: Build and push
|
|
|
|
id: docker_build
|
|
|
|
id: docker_build
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
@ -37,6 +45,13 @@ jobs:
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:latest
|
|
|
|
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/plex-meta-manager:latest
|
|
|
|
|
|
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
|
|
|
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Move cache
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
rm -rf /tmp/.buildx-cache
|
|
|
|
|
|
|
|
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
|
|
|
|
|
|
|
|
|
|
|
|
- name: Discord Success Notification
|
|
|
|
- name: Discord Success Notification
|
|
|
|
uses: meisnate12/discord-notifications@master
|
|
|
|
uses: meisnate12/discord-notifications@master
|
|
|
|