hotfix(docker): login before push
This commit is contained in:
@@ -38,6 +38,14 @@ jobs:
|
|||||||
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
# compose_file: docker-compose.yml
|
# 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
|
# before cache
|
||||||
# needed to avoid ccache injected into these images
|
# needed to avoid ccache injected into these images
|
||||||
- name: Build Dev
|
- name: Build Dev
|
||||||
@@ -58,13 +66,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker-compose --profile dev --profile local push
|
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
|
- name: Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user