Skip to content

Commit

Permalink
CI: moved release builds from Drone to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Dec 12, 2022
1 parent 0c8d59f commit 84ad495
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 112 deletions.
100 changes: 0 additions & 100 deletions .drone.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

name: Linting and unit tests
on:
push:
branches: [ master ]
branches: [ "master", "cernbox" ]
pull_request:
branches: [ master ]
branches: [ "master", "cernbox" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide, we further relax this
flake8 . --count --exit-zero --max-complexity=30 --max-line-length=130 --statistics
- name: Test with pytest
run: |
pytest
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "master", "aarnet", "cernbox", "collaboratest", "eoslock", "nginx", "oolock-autoexpire", "ooracefix", "open-for-iop", "perma-inode", "python3", "snyk-fix-0d459d1e2b96d3ef1c5a96800328793e", "snyk-fix-af3411a9b6ac485b96ed2d8f434e9d97", "syslog", "tus-uploads", "wopi4", "xroot-cs9" ]
branches: [ "master", "cernbox" ]
pull_request:
branches: [ "master" ]
schedule:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Releases
on:
push:
tags:
- "*"

jobs:
release:
runs-on: self-hosted
strategy:
matrix:
include:
- tag: wopiserver:${{ github.ref_type }}
file: wopiserver.Dockerfile
- tag: wopiserver:${{ github.ref_type }}-xrootd
file: wopiserver-xrootd.Dockerfile

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push ${{ matrix.tag }}
uses: docker/build-push-action@v3
with:
context: .
push: true
file: ${{ matrix.file }}
tags: ${{ format('{0}/{1}', secrets.DOCKERHUB_ORGANIZATION, matrix.tag)) }}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Gitter chat](https://badges.gitter.im/cs3org/wopiserver.svg)](https://gitter.im/cs3org/wopiserver) [![Build Status](https://drone.cernbox.cern.ch/api/badges/cs3org/wopiserver/status.svg)](https://drone.cernbox.cern.ch/cs3org/wopiserver)
[![Gitter chat](https://badges.gitter.im/cs3org/wopiserver.svg)](https://gitter.im/cs3org/wopiserver)
[![Build Status](https://github.com/cs3org/wopiserver/actions/workflows/releases.yml/badge.svg)](https://github.com/cs3org/wopiserver/actions)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e4e7c46c39b04bddbf63ade4cacdcc7d)](https://www.codacy.com/gh/cs3org/wopiserver/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cs3org/wopiserver&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/cs3org/wopiserver/branch/master/graph/badge.svg)](https://codecov.io/gh/cs3org/wopiserver)
========

# WOPI Server

This service is part of the ScienceMesh Interoperability Platform (IOP) and implements a vendor-neutral application gateway compatible with the Web-application Open Platform Interface ([WOPI](https://docs.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online)) specifications.
This service is part of the ScienceMesh Interoperability Platform ([IOP](https://developer.sciencemesh.io)) and implements a vendor-neutral application gateway compatible with the Web-application Open Platform Interface ([WOPI](https://docs.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/online)) specifications.

It enables ScienceMesh EFSS storages to integrate Office Online platforms including Microsoft Office Online and Collabora Online. In addition it implements a [bridge](src/bridge/readme.md) module with dedicated extensions to support apps like CodiMD and Etherpad.

Author: Giuseppe Lo Presti (@glpatcern) <br/>
Contributors:
Contributors (oldest contributions first):
- Michael DSilva (@madsi1m)
- Lovisa Lugnegaard (@LovisaLugnegard)
- Samuel Alfageme (@SamuAlfageme)
Expand Down

0 comments on commit 84ad495

Please sign in to comment.