Skip to content

Commit aebc3b1

Browse files
author
Rafael Bermudez Guijo
committed
build: Build with Docker
1 parent 535f720 commit aebc3b1

4 files changed

Lines changed: 44 additions & 2 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish Docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
18+
- name: Log in to GitHub Container Registry
19+
uses: docker/login-action@v2
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v2
27+
28+
- name: Build Docker image
29+
run: |
30+
repo_name=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
31+
docker build -t ghcr.io/${repo_name}/dvb-i-reference-client:latest .
32+
33+
- name: Push Docker image to GitHub Container Registry
34+
run: |
35+
repo_name=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
36+
docker push ghcr.io/${repo_name}/dvb-i-reference-client:latest

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM php:8.1-apache
2+
3+
COPY ./ /var/www/html/
4+
5+
RUN a2enmod rewrite
6+
RUN a2enmod expires

backend/configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
// install_location is the installation directory
44
// see also frontend/configuration.js
55
//
6-
$install_location = "https://dvb-i-reference.dvb.org/client";
6+
$install_location = $_ENV['INSTALL_LOCATION'];
77
?>

frontend/configuration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DVB-I Reference installation location -- also backend/configuration.php
2-
var INSTALL_LOCATION = "https://dvb-i-reference.dvb.org/client";
2+
var INSTALL_LOCATION = "http://localhost:8888";
33

44
// set to true to include <Service> channels that are not included in the selected LCN table.
55
var INCLUDE_NON_LCN_CHANNELS = false;

0 commit comments

Comments
 (0)