Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: publish docker image after new release #409

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Slurm and everything was OK with downgraded gssapi version. Paramiko dependencies allow this, so we can pin the version indeed.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down