fixed syntax error in docker-build.yaml
This commit is contained in:
10
.github/workflows/docker-build.yaml
vendored
10
.github/workflows/docker-build.yaml
vendored
@@ -27,18 +27,18 @@ jobs:
|
|||||||
echo "version=$LATEST" >> $GITHUB_OUTPUT
|
echo "version=$LATEST" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Update version file if changed
|
- name: Update version file if changed
|
||||||
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
|
||||||
|
if: ${{ steps.current.outputs.version != steps.latest.outputs.version }}
|
||||||
|
|
||||||
- name: Login to Dockerhub
|
- name: Login to Dockerhub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
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
|
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: eulaly/youdis:latest,eulaly/youdis:${{ steps.latest.outputs.version }}
|
tags: eulaly/youdis:latest,eulaly/youdis:${{ steps.latest.outputs.version }}
|
||||||
|
if: ${{ steps.current.outputs.version != steps.latest.outputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user