Skip to content

Commit

Permalink
different wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
mlapaglia committed Jan 29, 2024
1 parent 4e18394 commit e73e07b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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 }}
${{ contains(github.ref, 'alpha') && 'mlapaglia/openalprwebhookprocessor:alpha' || 'mlapaglia/openalprwebhookprocessor:latest' }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/0.5.128-alpha">
<Project Sdk="Microsoft.VisualStudio.JavaScript.Sdk/0.5.425631-alpha">
<PropertyGroup>
<StartupCommand>npm start</StartupCommand>
<JavaScriptTestFramework>Jasmine</JavaScriptTestFramework>
Expand Down

0 comments on commit e73e07b

Please sign in to comment.