From 0943eaf3025caec63a201f4acf1b163ae8625884 Mon Sep 17 00:00:00 2001 From: rjha-splunk Date: Tue, 4 Feb 2025 12:04:47 +0100 Subject: [PATCH] feat: enterprise release workflow file --- .github/workflows/ci-enterprise.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci-enterprise.yaml b/.github/workflows/ci-enterprise.yaml index bcfac1dd8d..9ede1ef858 100644 --- a/.github/workflows/ci-enterprise.yaml +++ b/.github/workflows/ci-enterprise.yaml @@ -23,7 +23,6 @@ on: branches: - "enterprise/release" - permissions: actions: read contents: write @@ -34,13 +33,8 @@ jobs: meta: runs-on: ubuntu-latest outputs: - sc4s: ghcr.io/${{ github.repository }}/enterprise:${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.version'] }} container_tags: ${{ steps.docker_action_meta.outputs.tags }} container_labels: ${{ steps.docker_action_meta.outputs.labels }} - container_buildtime: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.created'] }} - container_version: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.version'] }} - container_revision: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.revision'] }} - container_base: ${{ fromJSON(steps.docker_action_meta.outputs.json).tags[0] }} matrix_supportedSplunk: ${{ steps.matrix.outputs.supportedSplunk }} steps: - name: Checkout @@ -48,9 +42,12 @@ jobs: with: submodules: false persist-credentials: false - - uses: actions/setup-node@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 with: node-version: "16" + - name: Semantic Release id: version uses: cycjimmy/semantic-release-action@v3 @@ -65,8 +62,8 @@ jobs: dry_run: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Set Enterprise Version + + - name: Set Enterprise Version id: set_enterprise_version run: | NEW_VER="${{ steps.version.outputs.new_release_version }}" @@ -84,16 +81,19 @@ jobs: tags: | type=sha,format=long type=sha - type=semver,pattern={{version}},value=${{ steps.version.outputs.new_release_version }} - type=semver,pattern={{major}},value=${{ steps.version.outputs.new_release_version }} - type=semver,pattern={{major}}.{{minor}},value=${{ steps.version.outputs.new_release_version }} + type=semver,pattern={{version}},value=${{ steps.set_enterprise_version.outputs.enterprise_version }} + type=semver,pattern={{major}},value=${{ steps.set_enterprise_version.outputs.enterprise_version }} + type=semver,pattern={{major}}.{{minor}},value=${{ steps.set_enterprise_version.outputs.enterprise_version }} type=ref,event=branch type=ref,event=pr type=ref,event=tag - - name: matrix + + - name: Matrix id: matrix uses: splunk/addonfactory-test-matrix-action@v2.1.9 + # Additional jobs such as security scans, build, tests, or final release steps can follow here. + security-fossa-scan: continue-on-error: true runs-on: ubuntu-latest