8
8
branches : [ master ]
9
9
10
10
jobs :
11
+
12
+ build :
13
+ name : yarnTest
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ with :
19
+ cmd : install
20
+
21
+ with :
22
+ cmd : test
23
+
11
24
publish :
12
25
if : github.event_name == 'push' || github.event_name == 'release'
13
26
runs-on : ubuntu-latest
30
43
echo "::set-output name=dock_image::$dock_image"
31
44
echo "::set-output name=repo::$repo"
32
45
33
- # - uses: docker/setup-qemu-action@v1
46
+ # - uses: docker/setup-qemu-action@v1
34
47
- uses : docker/setup-buildx-action@v1
35
48
- name : Cache Docker layers
36
49
uses : actions/cache@v2
@@ -45,23 +58,23 @@ jobs:
45
58
with :
46
59
username : ${{ secrets.DOCKERHUB_USERNAME }}
47
60
password : ${{ secrets.DOCKERHUB_PASSWORD }}
48
-
61
+
49
62
- name : Login to GitHub Container Registry
50
- uses : docker/login-action@v1
63
+ uses : docker/login-action@v1
51
64
with :
52
65
registry : ghcr.io
53
66
username : ${{ github.repository_owner }}
54
67
password : ${{ secrets.GITHUB_TOKEN }}
55
68
56
-
57
69
- name : Build and push
58
70
uses : docker/build-push-action@v2
59
71
id : docker_build
60
72
with :
61
73
tags : |
62
74
docker.io/${{ steps.determine.outputs.dock_image }}
63
75
ghcr.io/${{ steps.determine.outputs.dock_image }}
64
- # platforms: linux/amd64,linux/ppc64le,linux/arm64
76
+ # platforms: linux/amd64,linux/ppc64le,linux/arm64
65
77
push : true
66
78
cache-from : type=local,src=/tmp/.buildx-cache
67
79
cache-to : type=local,dest=/tmp/.buildx-cache
80
+
0 commit comments