fixed syntax error in docker-build.yaml
This commit is contained in:
4
.github/workflows/docker-build.yaml
vendored
4
.github/workflows/docker-build.yaml
vendored
@@ -27,8 +27,8 @@ 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
|
||||
@@ -37,8 +37,8 @@ jobs:
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user