Skip to content
Merged
Show file tree
Hide file tree
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
51 changes: 7 additions & 44 deletions .github/workflows/create-tag-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,27 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
option:
description: 'Select version to release'
description: "Select type of release. If first release, use major and it will release v1.0.0."
required: true
type: choice
default: 'minor'
default: "minor"
options:
- major
- minor
- patch
- n-1/n-2 patch (Provide input in the below box)
- version
version:
description: "Patch version to release. example: 2.1.x (Use this only if n-1/n-2 patch is selected)"
description: "Specific semver version to release. Only used when 'version' is the selected option. Example: v2.1.x."
required: false
type: string
repository_dispatch:
types: [auto-release-workflow]

jobs:
process-inputs:
name: Process Inputs
runs-on: ubuntu-latest
outputs:
processedVersion: ${{ steps.set-version.outputs.versionEnv }}
steps:
- name: Process input
id: set-version
shell: bash
run: |
echo "Triggered by: ${{ github.event_name }}"
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
echo "versionEnv=minor" >> $GITHUB_OUTPUT
exit 0
fi
if [[ "${{ github.event.inputs.version }}" != "" && "${{ github.event.inputs.option }}" == "n-1/n-2 patch (Provide input in the below box)" ]]; then
echo "versionEnv=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
exit 0
fi
if [[ "${{ github.event.inputs.option }}" != "n-1/n-2 patch (Provide input in the below box)" ]]; then
echo "versionEnv=${{ github.event.inputs.option }}" >> $GITHUB_OUTPUT
exit 0
fi
echo "versionEnv=minor" >> $GITHUB_OUTPUT

csm-release:
needs: process-inputs
uses: dell/common-github-actions/.github/workflows/create-tag-release.yaml@main
name: Create Tag and Release
uses: dell/common-github-actions/.github/workflows/create-tag-release.yaml@main
with:
version: ${{ needs.process-inputs.outputs.processedVersion }}
images: 'csi-vxflexos'
option: ${{ inputs.option || 'minor' }}
version: ${{ inputs.version || '' }}
secrets: inherit

next-steps:
name: 📌 Next Steps for Release Process
runs-on: ubuntu-latest
needs: csm-release
steps:
- name: Share next steps with user
run: |
echo "✅ Tag and release completed."
echo "➡️ Please manually trigger the Jenkins image build job: CSM-Images-Build-Nightly."
echo "🚀 Once the Jenkins image build job is successful, trigger the Release Image workflow from GitHub Actions."
2 changes: 0 additions & 2 deletions .github/workflows/license-checker.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Weekly License Header Check

on:
schedule:
- cron: '0 0 * * 1' # Runs every Monday at 00:00 UTC
workflow_dispatch:
jobs:
license-check:
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/release-image.yaml

This file was deleted.

1 change: 0 additions & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// limitations under the License.
//
//go:build linux && plugin
// +build linux,plugin

//go:generate go generate ./core

Expand Down
1 change: 0 additions & 1 deletion test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
//

//go:build integration
// +build integration

package e2e

Expand Down
1 change: 0 additions & 1 deletion test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
//

//go:build integration
// +build integration

package integration_test

Expand Down
1 change: 0 additions & 1 deletion test/integration/step_defs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
//

//go:build integration
// +build integration

package integration_test

Expand Down
Loading