fixed github worker with docker auth
This commit is contained in:
6
.github/workflows/docker-build.yaml
vendored
6
.github/workflows/docker-build.yaml
vendored
@@ -30,6 +30,12 @@ jobs:
|
|||||||
if: steps.current.outputs.version != steps.latest.outputs.version
|
if: steps.current.outputs.version != steps.latest.outputs.version
|
||||||
run: echo ${{ steps.latest.outputs.version }} > version.txt
|
run: echo ${{ steps.latest.outputs.version }} > version.txt
|
||||||
|
|
||||||
|
- name: Login to Dockerhub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push docker image
|
- name: Build and push docker image
|
||||||
if: steps.current.outputs.version != steps.latest.outputs.version
|
if: steps.current.outputs.version != steps.latest.outputs.version
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user