File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,9 +3,6 @@ name: amber
33on :
44 workflow_dispatch :
55
6- env :
7- date : $(date +'%Y-%m-%d')
8-
96jobs :
107 amber-build :
118 runs-on : ubuntu-24.04
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
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-
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments