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,8 +27,8 @@ 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
@@ -37,8 +37,8 @@ jobs:
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 }}