diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ac99220..22c2eca4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,3 +167,30 @@ jobs: - name: Build Docker image run: ./run-tests.sh --check-docker-build + + release-docker: + runs-on: ubuntu-20.04 + if: > + vars.RELEASE_DOCKER == 'true' && + github.event_name == 'push' && + startsWith(github.ref, 'refs/tags/') + needs: + - docs-sphinx + - lint-black + - lint-check-manifest + - lint-dockerfile + - lint-flake8 + - lint-pydocstyle + - lint-shellcheck + - python-tests + steps: + - name: Release Docker image + uses: reanahub/reana-github-actions/release-docker@v1 + with: + username: ${{ secrets.DOCKER_USER }} + token: ${{ secrets.DOCKER_TOKEN }} + organisation: ${{ vars.DOCKER_ORGANISATION }} + registry: ${{ vars.DOCKER_REGISTRY }} + platform: | + linux/amd64 + linux/arm64 diff --git a/Dockerfile b/Dockerfile index 338ab4f6..6dff0bb6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,7 @@ RUN apt-get update -y && \ libauthen-krb5-perl \ libkrb5-dev \ openssh-client \ + python3-gssapi \ python3-pip \ python3.8 \ python3.8-dev \ diff --git a/requirements.in b/requirements.in index 767ec29e..07d5b913 100644 --- a/requirements.in +++ b/requirements.in @@ -5,3 +5,4 @@ # under the terms of the MIT License; see LICENSE file for more details. paramiko[gssapi]==3.0.0 +gssapi==1.6.1 diff --git a/requirements.txt b/requirements.txt index 582eef61..1bbb3de1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -26,7 +26,7 @@ decorator==5.1.1 # via gssapi flask==2.1.3 # via reana-job-controller (setup.py) fs==2.4.16 # via reana-commons, reana-job-controller (setup.py) google-auth==2.23.0 # via kubernetes -gssapi==1.8.3 # via paramiko +gssapi==1.6.1 # via -r requirements.in, paramiko idna==3.4 # via jsonschema, requests importlib-metadata==6.8.0 # via alembic, flask importlib-resources==6.1.0 # via alembic