Fix: Update workflow to match working pattern with catthehacker/ubuntu container
Some checks failed
Build and Push Plex MCP Docker Image / build (push) Failing after 26s

This commit is contained in:
Ben
2025-12-28 05:29:58 +00:00
parent 06399c273b
commit b5870a102e

View File

@@ -1,31 +1,30 @@
name: Build and Push Docker Image name: Build and Push Plex MCP Docker Image
on: on:
push: push:
branches: branches:
- main - main
tags: - master
- 'v*'
jobs: jobs:
build: build:
runs-on: docker runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
steps: steps:
- name: Checkout repository - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v3
- name: Extract tag - name: Login to Gitea Container Registry
id: extract uses: docker/login-action@v2
run: | with:
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then registry: gitea.ext.ben.io
echo "tag=latest" >> $GITHUB_OUTPUT username: ${{ gitea.actor }}
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then password: ${{ secrets.CR_PAT }}
TAG=${GITHUB_REF#refs/tags/}
echo "tag=${TAG}" >> $GITHUB_OUTPUT
fi
- name: Build and Push Docker Image - name: Build and Push
run: | uses: docker/build-push-action@v4
docker build -t git.local.ben.io/b3nw/plex-mcp:${{ steps.extract.outputs.tag }} . with:
docker login -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }} git.local.ben.io context: .
docker push git.local.ben.io/b3nw/plex-mcp:${{ steps.extract.outputs.tag }} push: true
tags: gitea.ext.ben.io/${{ gitea.repository }}:latest