From d9d449b28d9e38ece54492e5b501b3124cc8c247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Sonck?= Date: Wed, 10 Jul 2024 21:57:04 +0200 Subject: [PATCH] ci: fix syntax and tag names for workflow_dispatch --- .github/workflows/build-api.yml | 6 +++--- .github/workflows/build-conversion.yml | 6 +++--- .github/workflows/build-idp.yml | 2 +- .github/workflows/build-language.yml | 2 +- .github/workflows/build-mosaic.yml | 6 +++--- .github/workflows/build-ui.yml | 6 +++--- .github/workflows/build-webdav.yml | 6 +++--- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 120f6bb1b..05484597c 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Prepare input branch - if: ${{ github.event.inputs.branch != "" }} + if: ${{ github.event.inputs.branch != '' }} run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_ENV - name: Checkout Repository @@ -70,9 +70,9 @@ jobs: TAGS+=",$name:latest" echo "TAGS=$TAGS" >> $GITHUB_ENV - - name: Set the tag on wokflow dispatch + - name: Set the tag on workflow dispatch if: ${{ github.ref_type != 'tag' }} - run: echo "TAGS=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + run: echo "TAGS=voltaserve/api:$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Build and Push Docker Image uses: docker/build-push-action@v5 diff --git a/.github/workflows/build-conversion.yml b/.github/workflows/build-conversion.yml index 81f07696e..6d6beee23 100644 --- a/.github/workflows/build-conversion.yml +++ b/.github/workflows/build-conversion.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Prepare input branch - if: ${{ github.event.inputs.branch != "" }} + if: ${{ github.event.inputs.branch != '' }} run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_ENV - name: Checkout Repository @@ -70,9 +70,9 @@ jobs: TAGS+=",$name:latest" echo "TAGS=$TAGS" >> $GITHUB_ENV - - name: Set the tag on wokflow dispatch + - name: Set the tag on workflow dispatch if: ${{ github.ref_type != 'tag' }} - run: echo "TAGS=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + run: echo "TAGS=voltaserve/conversion:$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Build and Push Docker Image uses: docker/build-push-action@v5 diff --git a/.github/workflows/build-idp.yml b/.github/workflows/build-idp.yml index 274feca4d..ec4bab0d1 100644 --- a/.github/workflows/build-idp.yml +++ b/.github/workflows/build-idp.yml @@ -70,7 +70,7 @@ jobs: TAGS+=",$name:latest" echo "TAGS=$TAGS" >> $GITHUB_ENV - - name: Set the tag on wokflow dispatch + - name: Set the tag on workflow dispatch if: ${{ github.ref_type != 'tag' }} run: echo "TAGS=$(git rev-parse --short HEAD)" >> $GITHUB_ENV diff --git a/.github/workflows/build-language.yml b/.github/workflows/build-language.yml index 0d5e400e3..8a0893958 100644 --- a/.github/workflows/build-language.yml +++ b/.github/workflows/build-language.yml @@ -75,7 +75,7 @@ jobs: TAGS+=",$name:latest" echo "TAGS=$TAGS" >> $GITHUB_ENV - - name: Set the tag on wokflow dispatch + - name: Set the tag on workflow dispatch if: ${{ github.ref_type != 'tag' }} run: echo "TAGS=$(git rev-parse --short HEAD)" >> $GITHUB_ENV diff --git a/.github/workflows/build-mosaic.yml b/.github/workflows/build-mosaic.yml index b7fcaf63a..b8cb33cb6 100644 --- a/.github/workflows/build-mosaic.yml +++ b/.github/workflows/build-mosaic.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Prepare input branch - if: ${{ github.event.inputs.branch != "" }} + if: ${{ github.event.inputs.branch != '' }} run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_ENV - name: Checkout Repository @@ -70,9 +70,9 @@ jobs: TAGS+=",$name:latest" echo "TAGS=$TAGS" >> $GITHUB_ENV - - name: Set the tag on wokflow dispatch + - name: Set the tag on workflow dispatch if: ${{ github.ref_type != 'tag' }} - run: echo "TAGS=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + run: echo "TAGS=voltaserve/mosaic:$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Build and Push Docker Image uses: docker/build-push-action@v5 diff --git a/.github/workflows/build-ui.yml b/.github/workflows/build-ui.yml index 8492b7275..e1c3bf04c 100644 --- a/.github/workflows/build-ui.yml +++ b/.github/workflows/build-ui.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Prepare input branch - if: ${{ github.event.inputs.branch != "" }} + if: ${{ github.event.inputs.branch != '' }} run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_ENV - name: Checkout Repository @@ -70,9 +70,9 @@ jobs: TAGS+=",$name:latest" echo "TAGS=$TAGS" >> $GITHUB_ENV - - name: Set the tag on wokflow dispatch + - name: Set the tag on workflow dispatch if: ${{ github.ref_type != 'tag' }} - run: echo "TAGS=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + run: echo "TAGS=voltaserve/ui:$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Build and Push Docker Image uses: docker/build-push-action@v5 diff --git a/.github/workflows/build-webdav.yml b/.github/workflows/build-webdav.yml index 1319bc30c..63aebc467 100644 --- a/.github/workflows/build-webdav.yml +++ b/.github/workflows/build-webdav.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Prepare input branch - if: ${{ github.event.inputs.branch != "" }} + if: ${{ github.event.inputs.branch != '' }} run: echo "branch=refs/heads/${{ github.event.inputs.branch }}" >> $GITHUB_ENV - name: Checkout Repository @@ -70,9 +70,9 @@ jobs: TAGS+=",$name:latest" echo "TAGS=$TAGS" >> $GITHUB_ENV - - name: Set the tag on wokflow dispatch + - name: Set the tag on workflow dispatch if: ${{ github.ref_type != 'tag' }} - run: echo "TAGS=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + run: echo "TAGS=voltaserve/webdav:$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Build and Push Docker Image uses: docker/build-push-action@v5