Skip to content

Fix running using docker-compose #2

Fix running using docker-compose

Fix running using docker-compose #2

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches: [ main ]
paths:
- 'worker.js'
- 'wrangler.jsonc'
- 'Dockerfile'
- 'templates/**'
pull_request:
branches: [ main ]
paths:
- 'worker.js'
- 'wrangler.jsonc'
- 'Dockerfile'
- 'templates/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get latest Git tag
id: git_tag
run: |
git fetch --tags
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "dev")
echo "LATEST_TAG=$latest_tag" >> $GITHUB_OUTPUT
- name: Build and push Docker image (multi-platform)
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/seerr-notifier:${{ steps.git_tag.outputs.LATEST_TAG }}
${{ secrets.DOCKERHUB_USERNAME }}/seerr-notifier:latest
platforms: linux/amd64,linux/arm64