Skip to content

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

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

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

Workflow file for this run

name: sync
on:
push:
branches:
- main
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
env:
BROWSER_PATH: ${{ github.workspace }}/chrome-linux64/chrome
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
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 -qq chrome-linux64.zip
if test -f "$BROWSER_PATH"; then
echo "Google Chrome binary stored at $BROWSER_PATH"
else
echo "Google Chrome binary not found at $BROWSER_PATH"
exit 1
fi
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23.4
- name: Build
run: make build
- name: Sync
run: make sync