Fix: Hefei-NAMD interface of file syns_nao.csr and parameter cal_syns… #3193
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: Container | |
| on: | |
| create: | |
| push: | |
| branches: | |
| - develop | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build_container_and_push: | |
| runs-on: X64 | |
| if: github.repository_owner == 'deepmodeling' | |
| strategy: | |
| matrix: | |
| dockerfile: ["gnu","intel","cuda"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Docker meta | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ghcr.io/deepmodeling/abacus-${{ matrix.dockerfile }} | |
| dp-harbor-registry.us-east-1.cr.aliyuncs.com/deepmodeling/abacus-${{ matrix.dockerfile }} | |
| tags: | | |
| type=semver,pattern={{version}},enable=${{ github.ref_type == 'tag' }} | |
| type=raw,value=latest | |
| - name: Fix Docker Directory Permissions | |
| run: | | |
| sudo mkdir -p /home/runner/.docker | |
| sudo chown -R $USER:$USER /home/runner/.docker | |
| - name: Setup Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Login to Aliyun Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: dp-harbor-registry.us-east-1.cr.aliyuncs.com | |
| # AliCloud automatically mirrors to registry.dp.tech | |
| username: ${{ secrets.DP_HARBOR_USERNAME }} | |
| password: ${{ secrets.DP_HARBOR_PASSWORD }} | |
| - name: Build and Push Container | |
| uses: docker/build-push-action@v6 | |
| with: | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| file: Dockerfile.${{ matrix.dockerfile }} | |
| push: true | |
| cache-from: type=registry,ref=ghcr.io/deepmodeling/abacus-${{ matrix.dockerfile }}:latest | |
| cache-to: type=inline |