Skip to content

Commit

Permalink
ci: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Jun 29, 2023
1 parent 7fb1953 commit 8d3aad2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ runs:
with:
result-encoding: string
script: |
return core.getInput('platforms')
return '${{inputs.platforms}}'
.split(',')
.map((platform) => `linux/${platform.trim()}`)
.join(',')
Expand Down
37 changes: 31 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ jobs:
id: tag
with:
result-encoding: string
script: "return context.eventName === 'workflow_dispatch' ? core.getInput('tag') : context.payload.release.tag_name;"
script: |
let tag = context.payload.release.tag_name;
if (context.eventName === 'workflow_dispatch') {
tag = '${{ inputs.tag }}';
}
return tag;
- name: Build Docker image
uses: ./.github/actions/docker
Expand All @@ -112,7 +117,12 @@ jobs:
id: tag
with:
result-encoding: string
script: "return context.eventName === 'workflow_dispatch' ? core.getInput('tag') : context.payload.release.tag_name;"
script: |
let tag = context.payload.release.tag_name;
if (context.eventName === 'workflow_dispatch') {
tag = '${{ inputs.tag }}';
}
return tag;
- name: Build Docker image
uses: ./.github/actions/docker
Expand All @@ -137,7 +147,12 @@ jobs:
id: tag
with:
result-encoding: string
script: "return context.eventName === 'workflow_dispatch' ? core.getInput('tag') : context.payload.release.tag_name;"
script: |
let tag = context.payload.release.tag_name;
if (context.eventName === 'workflow_dispatch') {
tag = '${{ inputs.tag }}';
}
return tag;
- name: Build Docker image
uses: ./.github/actions/docker
Expand All @@ -161,7 +176,12 @@ jobs:
id: tag
with:
result-encoding: string
script: "return context.eventName === 'workflow_dispatch' ? core.getInput('tag') : context.payload.release.tag_name;"
script: |
let tag = context.payload.release.tag_name;
if (context.eventName === 'workflow_dispatch') {
tag = '${{ inputs.tag }}';
}
return tag;
- name: Build Docker image
uses: ./.github/actions/docker
Expand All @@ -175,7 +195,7 @@ jobs:

release-dashmate-helper-docker-image:
name: Release Dashmate helper to Docker Hub
runs-on: self-hosted`
runs-on: self-hosted
timeout-minutes: 120
steps:
- name: Check out repo
Expand All @@ -186,7 +206,12 @@ jobs:
id: tag
with:
result-encoding: string
script: "return context.eventName === 'workflow_dispatch' ? core.getInput('tag') : context.payload.release.tag_name;"
script: |
let tag = context.payload.release.tag_name;
if (context.eventName === 'workflow_dispatch') {
tag = '${{ inputs.tag }}';
}
return tag;
- name: Build Docker image
uses: ./.github/actions/docker
Expand Down

0 comments on commit 8d3aad2

Please sign in to comment.