Skip to content

Commit 4081983

Browse files
Merge pull request #58 from edenlabllc/feature/FFS-57-add-github-workflows-examples
add github workflows examples
2 parents cd052fa + f3594fa commit 4081983

3 files changed

Lines changed: 78 additions & 1 deletion

File tree

docs/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These owners will be the default owners for everything in
22
# the repo and will be requested for review when someone opens a pull request.
3-
* @anovikov-el @apanasiuk-el
3+
* @anovikov-el @apanasiuk-el @vadim-bogdanovsky

examples/tenant-artifact-auto.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Prepare tenant Artifact with auto-tagging
2+
3+
on:
4+
push:
5+
# For Gitflow the following patterns are suggested:
6+
# - master
7+
# - develop
8+
# - feature/*
9+
# - release/*
10+
# - hotfix/*
11+
branches:
12+
- staging
13+
- production
14+
15+
jobs:
16+
tenant-artifact:
17+
name: Checkout main repositories, create and upload tenant Artifact
18+
runs-on: ubuntu-22.04
19+
steps:
20+
- name: Checkout main repository
21+
uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.ref }}
24+
fetch-depth: 0
25+
26+
- name: Create and upload tenant Artifact
27+
uses: edenlabllc/tenant-artifact.ci.action@v3
28+
with:
29+
autotag: true
30+
github_token_repo_full_access: ${{ secrets.GH_TOKEN_REPO_FULL_ACCESS }}
31+
# slack_message_release_notes_path: docs/release-notes.md
32+
# slack_notifications: false # (by default)
33+
# slack_webhook: ${{ secrets.SLACK_WEBHOOK_RELEASES }}
34+
# update_tenant_environments: ""
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Prepare tenant Artifact manual
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
artifact_version:
7+
description: Tenant release version.
8+
required: true
9+
manual_push_tag:
10+
description: Manually push a tag from the current branch.
11+
required: false
12+
type: boolean
13+
# release_slack_message_details:
14+
# description: Additional information added to the body of the Slack message.
15+
# required: false
16+
# default: ""
17+
update_tenant_environments:
18+
description: List of tenants and environments for automatically updating the dependency version.
19+
required: false
20+
default: ""
21+
22+
jobs:
23+
tenant-artifact:
24+
name: Checkout main repositories, create and upload tenant Artifact
25+
runs-on: ubuntu-22.04
26+
steps:
27+
- name: Checkout main repository
28+
uses: actions/checkout@v4
29+
with:
30+
ref: ${{ github.ref }}
31+
fetch-depth: 0
32+
33+
- name: Create and upload tenant Artifact
34+
uses: edenlabllc/tenant-artifact.ci.action@v3
35+
with:
36+
artifact_version: ${{ github.event.inputs.artifact_version }}
37+
github_token_repo_full_access: ${{ secrets.GH_TOKEN_REPO_FULL_ACCESS }}
38+
push_tag: ${{ github.event.inputs.manual_push_tag }}
39+
# slack_message_release_notes_path: docs/release-notes.md
40+
# slack_message_details: ${{ github.event.inputs.release_slack_message_details }}
41+
# slack_notifications: false # (by default)
42+
# slack_webhook: ${{ secrets.SLACK_WEBHOOK_RELEASES }}
43+
update_tenant_environments: ${{ github.event.inputs.update_tenant_environments }}

0 commit comments

Comments
 (0)