Skip to content

build(container): build and push docker image to ghcr #2000

build(container): build and push docker image to ghcr

build(container): build and push docker image to ghcr #2000

Workflow file for this run

name: sync
on:
push:
branches:
- package
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
env:
ITS_IMDB_AUTH: ${{ secrets.IMDB_AUTH }}
ITS_IMDB_EMAIL: ${{ secrets.IMDB_EMAIL }}
ITS_IMDB_PASSWORD: ${{ secrets.IMDB_PASSWORD }}
ITS_IMDB_COOKIEATMAIN: ${{ secrets.IMDB_COOKIEATMAIN }}
ITS_IMDB_COOKIEUBIDMAIN: ${{ secrets.IMDB_COOKIEUBIDMAIN }}
ITS_IMDB_LISTS: ${{ secrets.IMDB_LISTS }}
ITS_IMDB_TRACE: ${{ secrets.IMDB_TRACE }}
ITS_IMDB_HEADLESS: true
ITS_SYNC_MODE: ${{ secrets.SYNC_MODE }}
ITS_SYNC_HISTORY: ${{ secrets.SYNC_HISTORY }}
ITS_SYNC_RATINGS: ${{ secrets.SYNC_RATINGS }}
ITS_SYNC_WATCHLIST: ${{ secrets.SYNC_WATCHLIST }}
ITS_SYNC_TIMEOUT: ${{ secrets.SYNC_TIMEOUT }}
ITS_TRAKT_CLIENTID: ${{ secrets.TRAKT_CLIENTID }}
ITS_TRAKT_CLIENTSECRET: ${{ secrets.TRAKT_CLIENTSECRET }}
ITS_TRAKT_EMAIL: ${{ secrets.TRAKT_EMAIL }}
ITS_TRAKT_PASSWORD: ${{ secrets.TRAKT_PASSWORD }}
jobs:
sync:
runs-on: ubuntu-24.04
env:
BROWSER_PATH: ${{ github.workspace }}/chrome-linux64/chrome
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Google Chrome
run: |
wget --progress=dot:giga https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/linux64/chrome-linux64.zip
unzip -q chrome-linux64.zip
[ -f "$BROWSER_PATH" ] && echo "Google Chrome binary stored at $BROWSER_PATH" || echo "Google Chrome binary not found at $BROWSER_PATH" && exit 1
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
- name: Build
run: make build
- name: Sync
run: make sync