-
Notifications
You must be signed in to change notification settings - Fork 37
49 lines (39 loc) · 1.28 KB
/
release-base.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
46
47
48
49
name: Release Starwhale base Docker Image
on:
workflow_dispatch
#After fixing the rebuild issue, we can enable push option.
#push:
# branches:
# - main
jobs:
starwhale-base-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build and push base image
working-directory: ./docker
run: make build-release-base
- name: Build and push cuda-base image
working-directory: ./docker
run: make build-cuda
- name: Build and push server-base image
working-directory: ./docker
run: make build-release-base-server
- name: Build and push nodejs base image
working-directory: ./docker
run: make build-nodejs