hotfix(docker): login before push
This commit is contained in:
parent
9102b42526
commit
7910918d2f
1 changed files with 8 additions and 7 deletions
15
.github/workflows/docker_build.yml
vendored
15
.github/workflows/docker_build.yml
vendored
|
|
@ -38,6 +38,14 @@ jobs:
|
|||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
# compose_file: docker-compose.yml
|
||||
|
||||
- name: Login to Docker Hub
|
||||
if: ${{ steps.extract_branch.outputs.branch == 'master' }}
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
|
||||
# before cache
|
||||
# needed to avoid ccache injected into these images
|
||||
- name: Build Dev
|
||||
|
|
@ -58,13 +66,6 @@ jobs:
|
|||
run: |
|
||||
docker-compose --profile dev --profile local push
|
||||
|
||||
- name: Login to Docker Hub
|
||||
if: ${{ steps.extract_branch.outputs.branch == 'master' }}
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue