From e73e07b4cc88191f8f314e0a8ec5c7f9ccf5182c Mon Sep 17 00:00:00 2001 From: Matt LaPaglia Date: Mon, 29 Jan 2024 13:28:20 -0500 Subject: [PATCH] different wildcard --- .github/workflows/docker-publish.yml | 25 +++---------------- .../openalprwebhookprocessor.client.esproj | 2 +- 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4621cce..a754976 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -115,18 +115,9 @@ jobs: - name: Publish uses: softprops/action-gh-release@v1 - if: contains(github.ref, 'alpha') != true with: - files: "OpenAlprWebHookProcessor.Server*" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Publish - uses: softprops/action-gh-release@v1 - if: contains(github.ref, 'alpha') - with: - files: "OpenAlprWebHookProcessor.Server*" - prerelease: true + files: "OpenAlprWebHookProcessor*" + prerelease: ${{ contains(github.ref, 'alpha') }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -152,20 +143,10 @@ jobs: run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - name: Push to Docker Hub - if: contains(github.ref, 'alpha') != true uses: docker/build-push-action@v2 with: file: ./OpenAlprWebhookProcessor.Server/Dockerfile push: true tags: | mlapaglia/openalprwebhookprocessor:${{ steps.get_version.outputs.VERSION }} - mlapaglia/openalprwebhookprocessor:latest - - - name: Push alpha build to Docker Hub - if: contains(github.ref, 'alpha') - uses: docker/build-push-action@v2 - with: - file: ./OpenAlprWebhookProcessor.Server/Dockerfile - push: true - tags: | - mlapaglia/openalprwebhookprocessor:${{ steps.get_version.outputs.VERSION }} \ No newline at end of file + ${{ contains(github.ref, 'alpha') && 'mlapaglia/openalprwebhookprocessor:alpha' || 'mlapaglia/openalprwebhookprocessor:latest' }} \ No newline at end of file diff --git a/openalprwebhookprocessor.client/openalprwebhookprocessor.client.esproj b/openalprwebhookprocessor.client/openalprwebhookprocessor.client.esproj index f782ef5..5be0c16 100644 --- a/openalprwebhookprocessor.client/openalprwebhookprocessor.client.esproj +++ b/openalprwebhookprocessor.client/openalprwebhookprocessor.client.esproj @@ -1,4 +1,4 @@ - + npm start Jasmine