Skip to content

Commit

Permalink
feat: enterprise release workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
rjha-splunk committed Feb 4, 2025
1 parent 6f32f2b commit 0943eaf
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci-enterprise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ on:
branches:
- "enterprise/release"


permissions:
actions: read
contents: write
Expand All @@ -34,23 +33,21 @@ 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
uses: actions/checkout@v4
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
Expand All @@ -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 }}"
Expand All @@ -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/[email protected]

# 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
Expand Down

0 comments on commit 0943eaf

Please sign in to comment.