Skip to content

Commit

Permalink
Merge pull request #98 from bcgov/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DarylTodosichuk authored Oct 25, 2024
2 parents da2b475 + b5b0fb3 commit c0b5a68
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/docker-build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
echo "Environment: $TARGET_ENV JFROG_REPO_PATH=$JFROG_REPO_PATH"
echo "..."
env | sort
BranchInfo:
Branch:
needs: [Setup]
runs-on: ubuntu-latest
environment: dev
Expand All @@ -67,22 +67,21 @@ jobs:
- name: Get current date
id: date-selector
run: echo "date=$(date +'%B %e, %Y')" >> $GITHUB_OUTPUT
- name: List merged branches
- name: List merged branch
id: get-branch
run: |
git fetch --all
MERGED_BRANCHES=$(git branch -r --merged ${{env.TARGET_ENV}} | tail -n 1 | sed 's/origin\///')
echo "Merged branches: $MERGED_BRANCHES"
echo "MERGED_BRANCHES=$MERGED_BRANCHES" >> $GITHUB_ENV
env | sort
- name: Set repository version variable
echo "MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1)" >> $GITHUB_OUTPUT
MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1)
echo "Merged branch: $MERGED_BRANCH"
- name: Set repository version variables
id: setversion
run: |
gh variable list --env ${{env.TARGET_ENV}}
gh variable set UGM_BUILD_REVISION --env ${{env.TARGET_ENV}} --body "${{steps.get-commit.outputs.sha_short}}"
gh variable list --env ${{env.TARGET_ENV}}
echo "buildArgs UNITY_BUILD_VERSION: ${{env.UGM_BUILD_VERSION}}, UNITY_BUILD_REVISION: ${{env.UGM_BUILD_REVISION}}"
echo "buildArgs --env ${{env.TARGET_ENV}} UNITY_BUILD_VERSION: ${{env.UGM_BUILD_VERSION}}, UNITY_BUILD_REVISION: ${{env.UGM_BUILD_REVISION}}, Merged Branch: ${{steps.get-branch.outputs.MERGED_BRANCH}}"
Build:
needs: [Setup,BranchInfo]
needs: [Setup,Branch]
runs-on: ubuntu-latest
environment: dev
steps:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
echo "Environment: $TARGET_ENV JFROG_REPO_PATH=$JFROG_REPO_PATH"
echo "..."
env | sort
BranchInfo:
Branch:
needs: [Setup]
runs-on: ubuntu-latest
environment: dev
Expand All @@ -67,11 +67,12 @@ jobs:
- name: Get current date
id: date-selector
run: echo "date=$(date +'%B %e, %Y')" >> $GITHUB_OUTPUT
- name: List merged branches
- name: List merged branch
id: get-branch
run: |
git fetch --all
MERGED_BRANCHES=$(git branch -r --merged ${{env.TARGET_ENV}} | tail -n 1 | sed 's/origin\///')
echo "Merged branches: $MERGED_BRANCHES"
echo "MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1)" >> $GITHUB_OUTPUT
MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1)
echo "Merged branch: $MERGED_BRANCH"
GenerateTag:
needs: [Setup]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -119,9 +120,9 @@ jobs:
# Update lower environment version elements
gh variable set UGM_BUILD_VERSION --env dev --body "${{steps.tag-selector.outputs.tagversion}}"
gh variable list --env dev
echo "buildArgs --env ${{env.TARGET_ENV}} UNITY_BUILD_VERSION: ${{env.UGM_BUILD_VERSION}}, UNITY_BUILD_REVISION: ${{env.UGM_BUILD_REVISION}}"
echo "buildArgs --env ${{env.TARGET_ENV}} UNITY_BUILD_VERSION: ${{env.UGM_BUILD_VERSION}}, UNITY_BUILD_REVISION: ${{env.UGM_BUILD_REVISION}}, Merged Branch: ${{steps.get-branch.outputs.MERGED_BRANCH}}"
Build:
needs: [Setup,BranchInfo,GenerateTag]
needs: [Setup,Branch,GenerateTag]
runs-on: ubuntu-latest
environment: test
steps:
Expand Down
5 changes: 4 additions & 1 deletion applications/scripts/datafix-ab#006.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ test 3
test 4
test 5
test 6
test 7
test 7
test 8
test 9.1
test 9.2
1 change: 1 addition & 0 deletions applications/scripts/datafix-ab#007.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test

0 comments on commit c0b5a68

Please sign in to comment.