Skip to content

Commit

Permalink
Add back TAG to release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com>
  • Loading branch information
dhaiducek authored and openshift-merge-robot committed May 31, 2023
1 parent 2708e64 commit 7e85af9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*.*.*'

env:
RELEASE_VERSION: ${{ github.ref_name }}
TAG: ${{ github.ref_name }}
defaults:
run:
working-directory: go/src/open-cluster-management.io/config-policy-controller
Expand All @@ -31,11 +31,11 @@ jobs:
- name: push image
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin
docker push quay.io/open-cluster-management/config-policy-controller:$RELEASE_VERSION
docker push quay.io/open-cluster-management/config-policy-controller:$TAG
- name: generate changelog
run: |
echo "# config-policy-controller $RELEASE_VERSION" > /home/runner/work/changelog.txt
echo "- The released image is quay.io/open-cluster-management/config-policy-controller:$RELEASE_VERSION" >> /home/runner/work/changelog.txt
echo "# config-policy-controller $TAG" > /home/runner/work/changelog.txt
echo "- The released image is quay.io/open-cluster-management/config-policy-controller:$TAG" >> /home/runner/work/changelog.txt
- name: publish release
uses: softprops/action-gh-release@v0.1.15
with:
Expand Down

0 comments on commit 7e85af9

Please sign in to comment.