Skip to content

Commit 775a8bc

Browse files
authored
Merge pull request #38 from CCPBioSim/build-fix
try another fix
2 parents eac35c7 + 0eb9e4f commit 775a8bc

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/amber.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: amber
33
on:
44
workflow_dispatch:
55

6-
env:
7-
date: $(date +'%Y-%m-%d')
8-
96
jobs:
107
amber-build:
118
runs-on: ubuntu-24.04
@@ -17,6 +14,11 @@ jobs:
1714
name: py${{ matrix.python }}-aiida${{ matrix.aiida-core }}-ambertools${{ matrix.ambertools }}
1815
steps:
1916

17+
- name: prepare tag
18+
id: date
19+
run: |
20+
echo "tag=$(date +'%Y-%m-%d')-py${{ matrix.python }}-aiida${{ matrix.aiida-core }}-ambertools${{ matrix.ambertools }}" >> $GITHUB_OUTPUT
21+
2022
- name: checkout
2123
uses: actions/checkout@v6.0.1
2224

@@ -38,6 +40,5 @@ jobs:
3840
AIIDAVERSION=${{ matrix.aiida-core }}
3941
AMBERTOOLSVERSION=${{ matrix.ambertools }}
4042
PYTHONVERSION=${{ matrix.python }}
41-
tags: ghcr.io/${{ vars.ORG_REPO }}/aiida-amber-testenv:${{ env.date }}-py${{ matrix.python }}-aiida${{ matrix.aiida-core }}-ambertools${{ matrix.ambertools }}
43+
tags: ghcr.io/${{ vars.ORG_REPO }}/aiida-amber-testenv:${{ steps.date.outputs.tag }}
4244
push: true
43-

.github/workflows/gromacs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
name: py${{ matrix.python }}-aiida${{ matrix.aiida-core }}-gromacs${{ matrix.gromacs }}
1515
steps:
1616

17+
- name: prepare tag
18+
id: date
19+
run: |
20+
echo "tag=$(date +'%Y-%m-%d')-py${{ matrix.python }}-aiida${{ matrix.aiida-core }}-ambertools${{ matrix.ambertools }}" >> $GITHUB_OUTPUT
21+
1722
- name: checkout
1823
uses: actions/checkout@v6.0.1
1924

@@ -35,5 +40,5 @@ jobs:
3540
AIIDAVERSION=${{ matrix.aiida-core }}
3641
GMXVERSION=${{ matrix.gromacs }}
3742
PYTHONVERSION=${{ matrix.python }}
38-
tags: ghcr.io/${{ vars.ORG_REPO }}/aiida-gromacs-testenv:$(date +'%Y-%m-%d')-py${{ matrix.python }}-aiida${{ matrix.aiida-core }}-gromacs${{ matrix.gromacs }}
43+
tags: ghcr.io/${{ vars.ORG_REPO }}/aiida-gromacs-testenv:${{ steps.date.outputs.tag }}
3944
push: true

0 commit comments

Comments
 (0)