File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Deploy to staging
2
+ environment : staging
2
3
on :
3
4
push :
4
5
branches :
@@ -10,12 +11,20 @@ jobs:
10
11
steps :
11
12
- name : Check out the repo
12
13
uses : actions/checkout@v2
13
- - name : Push to Docker Hub
14
- uses : docker/build-push-action@v1
14
+ - name : Set up Docker Buildx
15
+ uses : docker/setup-buildx-action@v1
16
+ - name : Login to Docker Hub
17
+ uses : docker/login-action@v1
15
18
with :
16
19
username : ${{ secrets.DOCKER_USERNAME }}
17
20
password : ${{ secrets.DOCKER_PASSWORD }}
18
- repository : ${{ secrets.DOCKER_USERNAME }}/p5.js-web-editor-staging
19
- tag_with_ref : true
21
+ - name : Build and push to Docker Hub
22
+ uses : docker/build-push-action@v2
23
+ with :
24
+ context : .
25
+ file : ./Dockerfile
26
+ pull : true
27
+ push : true
28
+ tags : ${{ secrets.DOCKER_USERNAME }}/p5.js-web-editor-staging:${{ GITHUB_SHA }}
20
29
target : production
21
30
You can’t perform that action at this time.
0 commit comments