@@ -22,34 +22,39 @@ jobs:
22
22
steps :
23
23
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24
24
- uses : actions/checkout@v2
25
+ - uses : docker/setup-buildx-action@v1
25
26
- name : Get the version
26
27
id : get_version
27
28
run : echo ::set-output name=tag_name::${GITHUB_REF/refs\/tags\//}
29
+ - name : Login to DockerHub
30
+ uses : docker/login-action@v1
31
+ with :
32
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
33
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
28
34
- name : Build and push Docker images
29
35
# env:
30
36
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
37
# You may pin to the exact commit or the version.
32
38
# uses: docker/build-push-action@0db984c1826869dcd0740ff26ff75ff543238fd9
33
- uses : docker/build-push-action@v2.2.1
39
+ uses : docker/build-push-action@v2
34
40
with :
41
+ tags : dgraph/dgraph-lambda:${{ steps.get_version.outputs.tag_name }}
42
+ push : true
35
43
# Builder instance
36
- # builder: # optional
44
+ # builder: # optional
37
45
# Build's context is the set of files located in the specified PATH or URL
38
46
# context: .
39
47
# Path to the Dockerfile
40
48
# file: ./Dockerfile
41
49
# List of build-time variables
42
- # build-args: # optional
50
+ # build-args: # optional
43
51
# List of metadata for an image
44
- # labels: # optional
45
- # List of tags
46
- tags : dgraph/dgraph-lambda:${{ steps.get_version.outputs.tag_name }}
52
+ # labels: # optional
47
53
# Sets the target stage to build
48
- # target: # optional
54
+ # target: # optional
49
55
# List of target platforms for build
50
- # platforms: # optional
51
- push : true
56
+ # platforms: # optional
52
57
# List of secrets to expose to the build (eg. key=value, GIT_AUTH_TOKEN=mytoken)
53
- # secrets: # optional
58
+ # secrets: # optional
54
59
# GitHub Token used to authenticate against a repository for Git context
55
60
# github-token: ${{ env.GITHUB_TOKEN }} # optional, default is ${{ github.token }}
0 commit comments