Skip to content

Deploy Images to GHCR #498

Deploy Images to GHCR

Deploy Images to GHCR #498

Workflow file for this run

name: Deploy Images to GHCR
env:
IMAGE_NAME: ghcr.io/justereseau/jackett
on:
workflow_dispatch:
schedule:
- cron: 45 6 * * *
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.github/**'
jobs:
push-store-image:
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@main
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Read latest Jackett release
id: get_latest_release
run: echo "jackett_release=$(curl https://api.github.com/repos/Jackett/Jackett/releases/latest --silent | jq -r '.tag_name')" >> "$GITHUB_OUTPUT"
shell: bash
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
build-args: RELEASE_TAG=${{ steps.get_latest_release.outputs.jackett_release }}
tags: ${{ env.IMAGE_NAME }}:latest,${{ env.IMAGE_NAME }}:${{ steps.get_latest_release.outputs.jackett_release }}