-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3b1a22
commit 79df711
Showing
2 changed files
with
64 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: 'Build and Deploy' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
env: | ||
description: AWS environment to deploy to | ||
required: true | ||
type: 'string' | ||
default: 'dev' | ||
confirm_env: | ||
description: Double check for environment | ||
required: true | ||
type: 'string' | ||
default: '' | ||
ops-ref: | ||
description: Branch of dpc-ops to use | ||
required: false | ||
type: 'string' | ||
default: 'main' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ inputs.env }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
get-version-tag: | ||
name: "Get Version Tag" | ||
runs-on: self-hosted | ||
outputs: | ||
version_tag: ${{ steps.get-version-tag.outputs.version_tag }} | ||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
- name: "Get Version Tag" | ||
id: get-version-tag | ||
run: | | ||
VERSION_TAG=`git describe --tags --exact-match` | ||
if [ $? -ne 0 ]; then | ||
BRANCH_HASH=`git show -s --format='%h'` | ||
VERSION_TAG="commit_${BRANCH_HASH}" | ||
fi | ||
echo $VERSION_TAG | ||
echo "version_tag=$VERSION_TAG" >> "$GITHUB_OUTPUT" | ||
# build: | ||
# deploy: | ||
# smoke-test: |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: "calll full deploy" | ||
|
||
on: | ||
push: | ||
paths: | ||
- .github/workflows/temp-caller.yml | ||
- .github/workflows/ecs-release.yml | ||
|
||
|
||
job: | ||
runit: | ||
uses: ./.github/workflows/ecs-release.yml | ||
with: | ||
env: test | ||
confirm_env: test | ||
opr-ref: main | ||
secrets: inherit |