Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 8b2baf8

Browse files
committed
add github action for release
Signed-off-by: Mike Ng <[email protected]>
1 parent a9cacc6 commit 8b2baf8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/go-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ env:
88
# Common versions
99
GO_VERSION: '1.16'
1010
GO_REQUIRED_MIN_VERSION: ''
11-
GOPATH: '/home/runner/work/multicloud-operators-channel/multicloud-operators-channel/go'
11+
GOPATH: '/home/runner/work/multicloud-operators-subscription/multicloud-operators-subscription/go'
1212
GITHUB_REF: ${{ github.ref }}
1313

1414
defaults:
1515
run:
16-
working-directory: go/src/open-cluster-management.io/multicloud-operators-channel
16+
working-directory: go/src/open-cluster-management.io/multicloud-operators-subscription
1717

1818
jobs:
1919
release:
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v2
2525
with:
2626
fetch-depth: 1
27-
path: go/src/open-cluster-management.io/multicloud-operators-channel
27+
path: go/src/open-cluster-management.io/multicloud-operators-subscription
2828
- name: install Go
2929
uses: actions/setup-go@v2
3030
with:
@@ -42,13 +42,13 @@ jobs:
4242
- name: push image
4343
run: |
4444
echo ${{ secrets.DOCKER_PASSWORD }} | docker login quay.io --username ${{ secrets.DOCKER_USER }} --password-stdin
45-
docker tag quay.io/open-cluster-management/multicloud-operators-channel:latest quay.io/open-cluster-management/multicloud-operators-channel:$RELEASE_VERSION
46-
docker push quay.io/open-cluster-management/multicloud-operators-channel:$RELEASE_VERSION
45+
docker tag quay.io/open-cluster-management/multicloud-operators-subscription:latest quay.io/open-cluster-management/multicloud-operators-subscription:$RELEASE_VERSION
46+
docker push quay.io/open-cluster-management/multicloud-operators-subscription:$RELEASE_VERSION
4747
- name: generate changelog
4848
run: |
49-
echo "# multicloud-operators-channel $RELEASE_VERSION" > /home/runner/work/changelog.txt
50-
echo "- See the [CHANGELOG](https://github.com/open-cluster-management-io/multicloud-operators-channel/blob/main/CHANGELOG/CHANGELOG-${MAJOR_RELEASE_VERSION}.md) for more details." >> /home/runner/work/changelog.txt
51-
echo "- The released image is quay.io/open-cluster-management/multicloud-operators-channel:$RELEASE_VERSION" >> /home/runner/work/changelog.txt
49+
echo "# multicloud-operators-subscription $RELEASE_VERSION" > /home/runner/work/changelog.txt
50+
echo "- See the [CHANGELOG](https://github.com/open-cluster-management-io/multicloud-operators-subscription/blob/main/CHANGELOG/CHANGELOG-${MAJOR_RELEASE_VERSION}.md) for more details." >> /home/runner/work/changelog.txt
51+
echo "- The released image is quay.io/open-cluster-management/multicloud-operators-subscription:$RELEASE_VERSION" >> /home/runner/work/changelog.txt
5252
- name: publish release
5353
uses: softprops/[email protected]
5454
env:

CHANGELOG/CHANGELOG-v0.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## v0.4.0
22

33
### New Features
4-
* Initial release, see https://github.com/open-cluster-management-io/multicloud-operators-channel/blob/main/README.md for more details.
4+
* Initial release, see https://github.com/open-cluster-management-io/multicloud-operators-subscription/blob/main/README.md for more details.
55

66
### Added
77

0 commit comments

Comments
 (0)