Skip to content

Commit 174fb74

Browse files
committed
fix release workflow
1 parent e4ca94c commit 174fb74

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,39 @@ jobs:
2222
steps:
2323
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2424
- uses: actions/checkout@v2
25+
- uses: docker/setup-buildx-action@v1
2526
- name: Get the version
2627
id: get_version
2728
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 }}
2834
- name: Build and push Docker images
2935
# env:
3036
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3137
# You may pin to the exact commit or the version.
3238
# uses: docker/build-push-action@0db984c1826869dcd0740ff26ff75ff543238fd9
33-
uses: docker/build-push-action@v2.2.1
39+
uses: docker/build-push-action@v2
3440
with:
41+
tags: dgraph/dgraph-lambda:${{ steps.get_version.outputs.tag_name }}
42+
push: true
3543
# Builder instance
36-
# builder: # optional
44+
# builder: # optional
3745
# Build's context is the set of files located in the specified PATH or URL
3846
# context: .
3947
# Path to the Dockerfile
4048
# file: ./Dockerfile
4149
# List of build-time variables
42-
# build-args: # optional
50+
# build-args: # optional
4351
# 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
4753
# Sets the target stage to build
48-
# target: # optional
54+
# target: # optional
4955
# List of target platforms for build
50-
# platforms: # optional
51-
push: true
56+
# platforms: # optional
5257
# List of secrets to expose to the build (eg. key=value, GIT_AUTH_TOKEN=mytoken)
53-
# secrets: # optional
58+
# secrets: # optional
5459
# GitHub Token used to authenticate against a repository for Git context
5560
# github-token: ${{ env.GITHUB_TOKEN }} # optional, default is ${{ github.token }}

0 commit comments

Comments
 (0)