Skip to content

Commit

Permalink
extend possibilities for using version script (#542)
Browse files Browse the repository at this point in the history
* parametrized output of python version script

* RUUUN

* correct version placement

* correct branches for run of gh action
  • Loading branch information
MajoBerger authored Feb 26, 2024
1 parent 39550ae commit 3fd6e82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
image_name: dataquest/dspace
dockerfile_path: ./Dockerfile
run_python_version_script: true
python_version_script_dest: dspace/config/VERSION_D.txt
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_ACCESS_TOKEN: ${{ secrets.DOCKER_ACCESS_TOKEN }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/reusable-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
workflow_call:
# Possible Inputs to this reusable job
inputs:
python_version_script_dest:
required: false
default: version.txt
type: string
run_python_version_script:
required: false
default: false
Expand Down Expand Up @@ -104,7 +108,7 @@ jobs:

- name: Add version
if: ${{ inputs.run_python_version_script }}
run: python scripts/sourceversion.py > dspace/config/VERSION_D.txt
run: python scripts/sourceversion.py > ${{ inputs.python_version_script_dest }}

# https://github.com/docker/setup-buildx-action
- name: Setup Docker Buildx
Expand Down

0 comments on commit 3fd6e82

Please sign in to comment.