Skip to content

Commit

Permalink
chore: Tag preleases as dev and releases as latest (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei authored Jan 18, 2023
1 parent 139a7da commit b508e65
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
echo "::set-output name=version::$tag"
echo "::set-output name=prerelease::false"
else
echo "::set-output name=version::latest"
echo "::set-output name=version::dev"
echo "::set-output name=prerelease::true"
fi
release:
Expand Down Expand Up @@ -165,6 +165,14 @@ jobs:
docker build -f ci/Dockerfile -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Update latest image if releasing
if: (!needs.prepare.outputs.prerelease) && (matrix.os == 'ubuntu-20.04')
env:
IMAGE_TAG: ${{ needs.prepare.outputs.version }}
run: |
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELEASE_HOOK }}
Expand Down

0 comments on commit b508e65

Please sign in to comment.