Skip to content

Fix linting errors in arr_webhook_utils.py #162

Fix linting errors in arr_webhook_utils.py

Fix linting errors in arr_webhook_utils.py #162

name: Build and Push Docker Image to GHCR
on:
push:
branches:
- main
- dev
env:
REGISTRY: ghcr.io
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
id: image_tag
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
echo "tag=latest" >> $GITHUB_OUTPUT
else
echo "tag=dev" >> $GITHUB_OUTPUT
fi
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{ github.repository }}:${{ steps.image_tag.outputs.tag }}
${{ env.REGISTRY }}/${{ github.repository }}:${{ github.sha }}