fixed syntax error in docker-build.yaml

This commit is contained in:
eulaly
2025-01-28 13:23:03 -05:00
parent 07f5107acf
commit 583a78b3a6

View File

@@ -27,18 +27,18 @@ jobs:
echo "version=$LATEST" >> $GITHUB_OUTPUT
- name: Update version file if changed
if: steps.current.outputs.version != steps.latest.outputs.version
run: echo ${{ steps.latest.outputs.version }} > version.txt
if: ${{ steps.current.outputs.version != steps.latest.outputs.version }}
- name: Login to Dockerhub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push docker image
if: steps.current.outputs.version != steps.latest.outputs.version
uses: docker/build-push-action@v5
with:
push: true
tags: eulaly/youdis:latest,eulaly/youdis:${{ steps.latest.outputs.version }}
if: ${{ steps.current.outputs.version != steps.latest.outputs.version }}