amber #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: amber | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| amber-build: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| ambertools: [25] | |
| python: [3.11] | |
| name: py${{ matrix.python }}-ambertools${{ matrix.ambertools }} | |
| steps: | |
| - name: prepare tag | |
| id: date | |
| run: | | |
| echo "tag=$(date +'%Y-%m-%d')py${{ matrix.python }}-ambertools${{ matrix.ambertools }}" >> $GITHUB_OUTPUT | |
| - name: checkout | |
| uses: actions/[email protected] | |
| - name: Authenticate with GHCR | |
| uses: docker/[email protected] | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.BUILD_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/[email protected] | |
| - name: Build and push | |
| uses: docker/[email protected] | |
| with: | |
| file: ./amber/Dockerfile | |
| build-args: | | |
| AMBERTOOLS_DL=${{ secrets.AMBERTOOLS_DL }} | |
| AMBERTOOLSVERSION=${{ matrix.ambertools }} | |
| PYTHONVERSION=${{ matrix.python }} | |
| tags: ghcr.io/${{ vars.ORG_REPO }}/aiida-amber-testenv:${{ steps.date.outputs.tag }} | |
| push: true |