-
Notifications
You must be signed in to change notification settings - Fork 58
85 lines (49 loc) · 3.39 KB
/
main.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# name: build latest
# on:
# push:
# branches: ["main"]
# env:
# REGISTRY: registry.cn-shanghai.aliyuncs.com
# jobs:
# build:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# id-token: write
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Build docker image
# run:
# docker version
# ls
# docker login --username=${{ secrets.ALIYUN_KEY_ID }} --password=${{ secrets.ALIYUN_KEY_SECRET }} registry.cn-shanghai.aliyuncs.com
# docker build -t api . --tag ${{ env.REGISTRY }}/doutok/api:latest --build-arg target=api
# docker push ${{ env.REGISTRY }}/doutok/api:latest
# docker build -t comment . --tag ${{ env.REGISTRY }}/doutok/comment:latest --build-arg target=comment
# docker push ${{ env.REGISTRY }}/doutok/comment:latest
# docker build -t commentDomain . --tag ${{ env.REGISTRY }}/doutok/commentDomain:latest --build-arg target=commentDomain
# docker push ${{ env.REGISTRY }}/doutok/commentDomain:latest
# docker build -t favorite . --tag ${{ env.REGISTRY }}/doutok/favorite:latest --build-arg target=favorite
# docker push ${{ env.REGISTRY }}/doutok/favorite:latest
# docker build -t favoriteDomain . --tag ${{ env.REGISTRY }}/doutok/favoriteDomain:latest --build-arg target=favoriteDomain
# docker push ${{ env.REGISTRY }}/doutok/favoriteDomain:latest
# docker build -t feed . --tag ${{ env.REGISTRY }}/doutok/feed:latest --build-arg target=feed
# docker push ${{ env.REGISTRY }}/doutok/feed:latest
# docker build -t message . --tag ${{ env.REGISTRY }}/doutok/message:latest --build-arg target=message
# docker push ${{ env.REGISTRY }}/doutok/message:latest
# docker build -t messageDomain . --tag ${{ env.REGISTRY }}/doutok/messageDomain:latest --build-arg target=messageDomain
# docker push ${{ env.REGISTRY }}/doutok/messageDomain:latest
# docker build -t publish . --tag ${{ env.REGISTRY }}/doutok/publish:latest --build-arg target=publish
# docker push ${{ env.REGISTRY }}/doutok/publish:latest
# docker build -t relation . --tag ${{ env.REGISTRY }}/doutok/relation:latest --build-arg target=relation
# docker push ${{ env.REGISTRY }}/doutok/relation:latest
# docker build -t relationDomain . --tag ${{ env.REGISTRY }}/doutok/relationDomain:latest --build-arg target=relationDomain
# docker push ${{ env.REGISTRY }}/doutok/relationDomain:latest
# docker build -t user . --tag ${{ env.REGISTRY }}/doutok/user:latest --build-arg target=user
# docker push ${{ env.REGISTRY }}/doutok/user:latest
# docker build -t userDomain . --tag ${{ env.REGISTRY }}/doutok/userDomain:latest --build-arg target=userDomain
# docker push ${{ env.REGISTRY }}/doutok/userDomain:latest
# docker build -t videoDomain . --tag ${{ env.REGISTRY }}/doutok/videoDomain:latest --build-arg target=videoDomain
# docker push ${{ env.REGISTRY }}/doutok/videoDomain:latest