Fix: autoset bx/by/bz when set nx/ny/nz manually (#2791) #1087
This file contains 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: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
branches: | |
- develop | |
jobs: | |
build_container_and_push: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'deepmodeling' | |
strategy: | |
matrix: | |
dockerfile: ["gnu","intel","cuda"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Login to Aliyun Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: registry.dp.tech | |
username: ${{ secrets.DP_HARBOR_USERNAME }} | |
password: ${{ secrets.DP_HARBOR_PASSWORD }} | |
- name: Build and Push Container | |
uses: docker/build-push-action@v4 | |
with: | |
tags: | | |
ghcr.io/deepmodeling/abacus-${{ matrix.dockerfile }}:latest | |
registry.dp.tech/deepmodeling/abacus-${{ matrix.dockerfile }}:latest | |
file: Dockerfile.${{ matrix.dockerfile }} | |
cache-from: type=registry,ref=ghcr.io/deepmodeling/abacus-${{ matrix.dockerfile }}:latest | |
cache-to: type=inline | |
push: true |