Skip to content

Commit a46cc6e

Browse files
committed
[skip ci] TVB-3135. Generate online help.
1 parent 91cfbc0 commit a46cc6e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,19 @@ on:
44
- cron: '0 0 * * *' # Run every day at midnight UTC
55

66
workflow_dispatch: # Allow manual run
7-
inputs:
8-
tag:
9-
required: true
10-
type: string
11-
description: Tag with released version
127

138
workflow_call: # Allow other GitHub workflows to call this
149
inputs:
10+
invoked_by:
11+
required: true
12+
type: string
1513
tag:
1614
required: true
1715
type: string
1816

1917
env:
2018
DOCKER_IMAGE_NAME: thevirtualbrain/tvb-run
21-
DOCKER_EBRAINS_REGISTRY: https://docker-registry.ebrains.eu/v2
19+
DOCKER_EBRAINS_REGISTRY: docker-registry.ebrains.eu
2220
DOCKER_IMAGE_NAME_EBRAINS: docker-registry.ebrains.eu/tvb/tvb-run
2321

2422
jobs:
@@ -41,6 +39,7 @@ jobs:
4139

4240
- name: Login to EBRAINS Docker Registry
4341
uses: docker/login-action@v3
42+
continue-on-error: true
4443
with:
4544
registry: ${{ env.DOCKER_EBRAINS_REGISTRY }}
4645
username: ${{ secrets.EBRAINS_DOCKER_HUB_USERNAME }}
@@ -66,7 +65,7 @@ jobs:
6665
# For intermediate builds, an alfa tag will be generated eg: branch_name.alpha
6766
id: get_tag
6867
run: |
69-
if ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call' }}; then
68+
if ${{ inputs.invoked_by == 'release' }}; then
7069
echo "TAG=${{ inputs.tag }}" >> $GITHUB_OUTPUT
7170
else
7271
echo "TAG=${{ github.ref_name }}.alpha" >> $GITHUB_OUTPUT
@@ -84,5 +83,6 @@ jobs:
8483
${{ env.DOCKER_IMAGE_NAME }}:${{ steps.get_tag.outputs.TAG }}
8584
${{ env.DOCKER_IMAGE_NAME }}:latest
8685
${{ env.DOCKER_IMAGE_NAME_EBRAINS }}:${{ steps.get_tag.outputs.TAG }}
87-
86+
cache-from: type=registry,ref=${{ env.DOCKER_IMAGE_NAME }}:buildcache
87+
cache-to: type=registry,ref=${{ env.DOCKER_IMAGE_NAME }}:buildcache,mode=max
8888

.github/workflows/release_for_pypi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,5 @@ jobs:
129129
uses: ./.github/workflows/build-docker-image.yml
130130
with:
131131
tag: ${{ needs.release.outputs.version }}
132+
invoked_by: 'release'
132133
secrets: inherit

0 commit comments

Comments
 (0)