Skip to content

Commit

Permalink
chore: tag, cont
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Aug 21, 2024
1 parent 0334cd5 commit 3d7ae2c
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ on:
description: Dry run - do not push
default: false

env:
# Provided tag can override the tag from the release event
IMAGE_TAG: ${{ github.event.inputs.tag || github.event.release.tag_name }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -104,7 +100,7 @@ jobs:
with:
result-encoding: string
script: |
const tag = vars.IMAGE_TAG;
const tag = inputs.tag || github.event.release.tag_name;
const [, major, minor] = tag.match(/^v([0-9]+)\.([0-9]+)/);
return (tag.includes('-') ? `${major}.${minor}-${{steps.suffix.outputs.result}}` : 'latest');
Expand Down Expand Up @@ -145,7 +141,7 @@ jobs:
image_org: dashpay
image_name: drive
target: drive-abci
tag: ${{ vars.IMAGE_TAG }}
tag: ${{ inputs.tag || github.event.release.tag_name }}
dry_run: ${{ inputs.dry_run }}

release-drive-image-debug:
Expand All @@ -158,7 +154,7 @@ jobs:
image_name: drive
target: drive-abci
cargo_profile: dev
tag: ${{ vars.IMAGE_TAG }}
tag: ${{ inputs.tag || github.event.release.tag_name }}
dry_run: ${{ inputs.dry_run }}

release-dapi-image:
Expand All @@ -170,7 +166,7 @@ jobs:
image_org: dashpay
image_name: dapi
target: dapi
tag: ${{ vars.IMAGE_TAG }}
tag: ${{ inputs.tag || github.event.release.tag_name }}
dry_run: ${{ inputs.dry_run }}

release-test-suite-image:
Expand All @@ -182,7 +178,7 @@ jobs:
image_org: dashpay
image_name: platform-test-suite
target: test-suite
tag: ${{ vars.IMAGE_TAG }}
tag: ${{ inputs.tag || github.event.release.tag_name }}
dry_run: ${{ inputs.dry_run }}

release-dashmate-helper-image:
Expand All @@ -194,7 +190,7 @@ jobs:
image_org: dashpay
image_name: dashmate-helper
target: dashmate-helper
tag: ${{ vars.IMAGE_TAG }}
tag: ${{ inputs.tag || github.event.release.tag_name }}
dry_run: ${{ inputs.dry_run }}

release-dashmate-packages:
Expand Down

0 comments on commit 3d7ae2c

Please sign in to comment.