Skip to content

Commit

Permalink
Add --latest flag set to false in GH release create (#7598)
Browse files Browse the repository at this point in the history
* Add --latest flag set to false in GH release create

* Remove dispatch
  • Loading branch information
rafaelbreno authored Jan 15, 2025
1 parent b2d8003 commit 1738adf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 49 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,35 +217,9 @@ jobs:
prime-username: ${{ env.PRIME_REGISTRY_USERNAME }}
prime-password: ${{ env.PRIME_REGISTRY_PASSWORD }}

dispatch:
needs: [release-amd64, release-arm64]
runs-on: runs-on,runner=8cpu-linux-x64,run-id=${{ github.run_id }},image=ubuntu22-full-x64,hdd=64
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Dapper
run: |
curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m) > /usr/local/bin/dapper
chmod +x /usr/local/bin/dapper
- name: "Read secrets"
uses: rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/pat-username/credentials token | PAT_USERNAME ;
- name: Dispatch
run: |
dapper -f Dockerfile --target dapper make dispatch
env:
PAT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAT_USERNAME: ${{ env.PAT_USERNAME }}
GITHUB_ACTION_TAG: ${{ env.GITHUB_ACTION_TAG }}

release-downstream-components:
name: "Release downstream components"
needs: [dispatch]
needs: [release-amd64, release-arm64]
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -276,6 +250,7 @@ jobs:
gh release create "$GITHUB_ACTION_TAG" \
--repo rancher/rke2-upgrade \
--title "$GITHUB_ACTION_TAG" \
--latest="false" \
--notes "Automated release created from $GITHUB_ACTION_TAG tag in ${{ github.repository }}"
- name: Create release in `rancher/system-agent-installer-rke2`
Expand All @@ -285,4 +260,5 @@ jobs:
gh release create "$GITHUB_ACTION_TAG" \
--repo rancher/system-agent-installer-rke2 \
--title "$GITHUB_ACTION_TAG" \
--latest="false" \
--notes "Automated release created from $GITHUB_ACTION_TAG tag in ${{ github.repository }}"
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ publish-manifest-runtime: ## Create and push the runtime manifest
publish-binary: ## Upload binaries
./scripts/publish-binary

.PHONY: dispatch
dispatch: ## Send dispatch event to rke2-upgrade repo
./scripts/dispatch

.PHONY: package
package: build ## Package the rke2 binary
./scripts/package
Expand Down
18 changes: 0 additions & 18 deletions scripts/dispatch

This file was deleted.

0 comments on commit 1738adf

Please sign in to comment.