-
Notifications
You must be signed in to change notification settings - Fork 48
42 lines (39 loc) · 1.22 KB
/
docker-image-all-no-mysql-ali.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
name: all no mysql acr image
# 触发条件:在 push 到 main 分支后
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.20.0'
- name: Install dependencies
run: npm install
- name: Generate build
run: npm run build
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Aliyun Container Registry (ACR)
uses: docker/login-action@v3
with:
registry: registry.cn-hangzhou.aliyuncs.com
# region-id: cn-hangzhou # 3
username: "${{ secrets.ACR_USERNAME }}"
password: "${{ secrets.ACR_PASSWORD }}"
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile3
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le,linux/s390x
push: true
tags: registry.cn-hangzhou.aliyuncs.com/moneynote/moneynote-all-no-mysql:latest