forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 134
45 lines (39 loc) · 1.28 KB
/
devcontainer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Container
on:
push:
branches:
- develop
jobs:
build_container_and_push:
runs-on: self-hosted
if: github.repository_owner == 'deepmodeling'
strategy:
matrix:
dockerfile: ["gnu","intel","cuda"]
steps:
- name: Checkout
uses: actions/checkout@v4
- 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: registry.dp.tech
username: ${{ secrets.DP_HARBOR_USERNAME }}
password: ${{ secrets.DP_HARBOR_PASSWORD }}
- name: Build and Push Container
uses: docker/build-push-action@v5
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