Skip to content

πŸ› fixed image loading method for movies #68

πŸ› fixed image loading method for movies

πŸ› fixed image loading method for movies #68

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main", "dev" ]
tags: ['v*']
permissions:
packages: write
contents: read
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Environment Variables
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
echo "DEPLOY_ENV=stage" >> $GITHUB_ENV
elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
echo "DEPLOY_ENV=dev" >> $GITHUB_ENV
elif [[ "${{ github.ref }}" == refs/tags/v* ]]; then
echo "DEPLOY_ENV=latest" >> $GITHUB_ENV
fi
- name: Build the Docker image
run: docker build . --file ./OpenMediaServer/Dockerfile --tag ghcr.io/openmediastation/openmediaserver:$DEPLOY_ENV
- name: Log in to GitHub Docker Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push Docker image to GitHub Packages
run: docker push ghcr.io/openmediastation/openmediaserver:$DEPLOY_ENV