File tree Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
deploy :
9
+ permissions :
10
+ contents : write
11
+
9
12
runs-on : ubuntu-latest
10
13
env :
11
14
ruby-version : 2.5
Original file line number Diff line number Diff line change 5
5
branches : [ 'dev' ]
6
6
7
7
jobs :
8
- deploy :
8
+ push_to_registry :
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Check out the repo
13
+ uses : actions/checkout@v2
14
+
15
+ - name : Push to Docker Hub
16
+ uses : docker/build-push-action@v1
17
+ with :
18
+ username : ${{ secrets.DOCKER_USERNAME }}
19
+ password : ${{ secrets.DOCKER_ACCESS_KEY }}
20
+ repository : slatedocs/slate
21
+ tag_with_ref : true
22
+
23
+ deploy_gh :
24
+ permissions :
25
+ contents : write
26
+
9
27
runs-on : ubuntu-latest
10
28
env :
11
29
ruby-version : 2.5
33
51
34
52
- run : bundle exec middleman build
35
53
36
- - name : Push to Docker Hub
37
- uses : docker/build-push-action@v1
38
- with :
39
- username : ${{ secrets.DOCKER_USERNAME }}
40
- password : ${{ secrets.DOCKER_ACCESS_KEY }}
41
- repository : slatedocs/slate
42
- tag_with_ref : true
43
-
44
54
- name : Deploy
45
55
46
56
with :
You can’t perform that action at this time.
0 commit comments