-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enterprise release workflow file
- Loading branch information
1 parent
6f32f2b
commit 0943eaf
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ on: | |
branches: | ||
- "enterprise/release" | ||
|
||
|
||
permissions: | ||
actions: read | ||
contents: write | ||
|
@@ -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 | ||
|
@@ -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/[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 | ||
|