4.0.2-beta.2 #26
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MediaFusion CI/CD | |
on: | |
release: | |
types: [ created ] | |
jobs: | |
mediafusion_docker_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Get short SHA | |
id: short_sha | |
run: echo "GIT_REV=$(echo ${GITHUB_SHA::7})" >> $GITHUB_ENV | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./deployment/Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
build-args: GIT_REV=${{ env.GIT_REV }} | |
tags: | | |
mhdzumair/mediafusion:v${{ github.ref_name }} | |
mhdzumair/mediafusion:latest | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} | |
kodi_build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.8' | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel | |
- name: Install zip | |
run: sudo apt-get install -y zip | |
- name: Get short SHA | |
id: short_sha | |
run: echo "GIT_REV=$(echo ${GITHUB_SHA::7})" >> $GITHUB_ENV | |
- name: Build addon | |
run: make -C kodi | |
- name: List build directory | |
run: ls -la kodi | |
- name: Upload Release Asset | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: kodi/plugin.video.mediafusion-*.zip |