Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
api_release: ${{ steps.api.outputs.release }}
api_version: ${{ steps.api.outputs.version }}
api_release_channel: ${{ steps.api.outputs.channel }}
api_latest: ${{ steps.api.outputs.latest }}
steps:
- name: Check out code
uses: actions/checkout@v2
Expand All @@ -40,13 +39,10 @@ jobs:

# Choose between "unstable" and "stable" channels.
# We choose "unstable" when the version contains a hyphen (e.g., 0.1.0-alpha).
# TODO(jnu): "latest" is an alias for "stable" right now.
# It's deprecated and should be replaced with "stable" in the future.
if [[ $API_VERSION == *"-"* ]]; then
echo "channel=unstable" >> "$GITHUB_OUTPUT"
else
echo "channel=stable" >> "$GITHUB_OUTPUT"
echo "latest=true" >> "$GITHUB_OUTPUT"
fi

if git rev-parse "api-$API_VERSION" >/dev/null 2>&1; then
Expand Down Expand Up @@ -138,10 +134,8 @@ jobs:
context: ${{github.workspace}}
file: ${{github.workspace}}/Dockerfile
# Apply new version tag, as well as a tag based on release channel.
# TODO(jnu): "latest" is an alias for "stable" right now, but it's deprecated
# and will be removed in the future.
push: true
tags: blindchargingapi.azurecr.io/blind-charging-api:${{ needs.tag.outputs.api_release_channel }},blindchargingapi.azurecr.io/blind-charging-api:${{ needs.tag.outputs.api_version }}${{ needs.tag.outputs.api_latest == 'true' && ',blindchargingapi.azurecr.io/blind-charging-api:latest' || '' }}
tags: blindchargingapi.azurecr.io/blind-charging-api:${{ needs.tag.outputs.api_release_channel }},blindchargingapi.azurecr.io/blind-charging-api:${{ needs.tag.outputs.api_version }}

# Create GitHub release with notes
release:
Expand Down
Loading