ci: fix docker login

This commit is contained in:
will Farrell 2020-12-02 11:26:30 -07:00
parent 71b0bf9ac2
commit e81c5c7fb9
No known key found for this signature in database
GPG Key ID: 3FC6D79E2208B22A

View File

@ -26,15 +26,15 @@ jobs:
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v3.x
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- if: github.ref == 'refs/heads/main'
name: Conditional(Set tag as `latest`)
run: echo ::set-output name=tag::latest
- if: startsWith(github.ref, 'refs/tags/')
name: Conditional(Set tag as `{version}`)
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- if: env.tag