forked from grafana/oncall
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.26 KB
/
release_aliyun.yaml
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
name: release_aliyun
on:
push:
branches:
- mo
- hotfix-*
release:
types:
- published
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: login to aliyun acr
uses: aliyun/acr-login@v1
with:
login-server: registry.cn-hangzhou.aliyuncs.com
username: "${{ secrets.ALIYUN_DOCKER_USER }}"
password: "${{ secrets.ALIYUN_DOCKER_PASSWORD }}"
region-id: cn-hangzhou
- name: set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: registry.cn-hangzhou.aliyuncs.com/ack-cos/oncall
tags: |
type=sha
type=ref,event=branch,suffix=-{{date 'YYYYMMDD'}}
type=semver,pattern={{version}}
- name: build and push
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: engine
build-args: |
GITHUB_ACCESS_TOKEN=${{ secrets.TOKEN_ACTION }}
file: engine/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}