forked from hechuan73/train_ticket
-
Notifications
You must be signed in to change notification settings - Fork 306
Expand file tree
/
Copy pathdeploy-docker-images-refactor.yaml
More file actions
50 lines (45 loc) · 1.45 KB
/
deploy-docker-images-refactor.yaml
File metadata and controls
50 lines (45 loc) · 1.45 KB
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
name: Refactor Deploy Docker Images
# on branch refactor/v2
on:
push:
branches:
- refactor/v2
concurrency:
group: deploy-refactor
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: docker/login-action@v3
with:
registry: crpi-acfbb78v5d28coxq.cn-shenzhen.personal.cr.aliyuncs.com
username: xlcyun
password: ${{ secrets.REFACTOR_ALIYUN_CR_PASSWORD }}
- uses: docker/setup-buildx-action@v3
with:
install: true
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- run: make package publish-image Repo=crpi-acfbb78v5d28coxq.cn-shenzhen.personal.cr.aliyuncs.com/xlcyun_public Tag=latest
- run: |
curl -X POST \
-H "X-Api-Key: ${{ secrets.REFACTOR_ROLLOUT_WEBHOOK_API_KEY }}" \
"${{ secrets.REFACTOR_ROLLOUT_WEBHOOK_ENDPOINT }}/rollout"