Skip to content

Commit

Permalink
Merge pull request #22 from PasteUs/dev
Browse files Browse the repository at this point in the history
Fix publish
  • Loading branch information
LucienShui committed Oct 22, 2019
2 parents aa02922 + e4dbbb4 commit eac4bb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/upload-to-release.yml
Expand Up @@ -52,12 +52,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_PASSWORD }}

- name: Publish Docker
- name: Login Docker Registry
uses: elgohr/Publish-Docker-Github-Action@2.7
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: registry.cn-hangzhou.aliyuncs.com

- name: Publish Docker
run: |
export DOCKER_TAG=$(echo ${{ github.ref }} | awk -F'release-v' '{ print $2 }')
docker build -t registry.cn-hangzhou.aliyuncs.com/pasteus/hello-ci:${DOCKER_TAG} .
Expand Down

0 comments on commit eac4bb7

Please sign in to comment.