Skip to content

Commit

Permalink
test 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DarylTodosichuk committed Oct 25, 2024
1 parent 1326847 commit 6f61665
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
run: |
MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1 | grep -oE 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
if [ -z "$MERGED_BRANCH" ]; then
echo "direct push no from bcgov/branch PR"
echo "direct push not a PR from bcgov/branch"
else
echo "Merged branch: $MERGED_BRANCH"
fi
Expand Down
35 changes: 31 additions & 4 deletions .github/workflows/docker-build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,35 @@ jobs:
echo "Environment: $TARGET_ENV JFROG_REPO_PATH=$JFROG_REPO_PATH"
echo "..."
env | sort
GenerateTag:
Branch:
needs: [Setup]
runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Get short commitId
id: get-commit
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Get current date
id: date-selector
run: echo "date=$(date +'%B %e, %Y')" >> $GITHUB_OUTPUT
- name: List merged branch
id: get-branch
run: |
MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1 | grep -oE 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
if [ -z "$MERGED_BRANCH" ]; then
echo "direct push not a PR from bcgov/branch"
else
echo "Merged branch: $MERGED_BRANCH"
fi
echo "mergedbranch=$MERGED_BRANCH" >> $GITHUB_OUTPUT
GenerateTag:
needs: [Setup,Branch]
runs-on: ubuntu-latest
environment: main
steps:
- name: Checkout repository
Expand All @@ -75,8 +101,9 @@ jobs:
MINOR_VERSION=$(echo "${{env.UGM_BUILD_VERSION}}" | grep -oE '\.[0-9]+\.' | grep -oE '[0-9]+')
VERSION_PATCH=$(echo "${{env.UGM_BUILD_VERSION}}" | grep -oE '[0-9]+$')
# Increment version elements
echo ${{steps.get-branch.outputs.mergedbranch}}
echo "${{env.UGM_RELEASE_PREFIX}}$MAJOR_VERSION.$MINOR_VERSION.$VERSION_PATCH"
MINOR_VERSION=$((MINOR_VERSION + 1))
VERSION_PATCH=$((VERSION_PATCH + 1))
echo "${{env.UGM_RELEASE_PREFIX}}$MAJOR_VERSION.$MINOR_VERSION.$VERSION_PATCH"
# Prepare tags
echo "gittag=${{env.UGM_RELEASE_PREFIX}}${MAJOR_VERSION}.${MINOR_VERSION}.${VERSION_PATCH}" >> $GITHUB_OUTPUT
Expand All @@ -98,9 +125,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,GenerateTag]
needs: [Setup,Branch,GenerateTag]
runs-on: ubuntu-latest
environment: main
steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ jobs:
run: |
MERGED_BRANCH=$(git log --merges --pretty=format:"%s" -1 | grep -oE 'from bcgov/[^ ]+' | sed 's/from bcgov\///')
if [ -z "$MERGED_BRANCH" ]; then
echo "direct push no from bcgov/branch PR"
echo "direct push not a PR from bcgov/branch"
else
echo "Merged branch: $MERGED_BRANCH"
fi
echo "MERGED_BRANCH=$MERGED_BRANCH" >> $GITHUB_OUTPUT
echo "mergedbranch=$MERGED_BRANCH" >> $GITHUB_OUTPUT
GenerateTag:
needs: [Setup]
needs: [Setup,Branch]
runs-on: ubuntu-latest
environment: test
steps:
Expand Down
3 changes: 2 additions & 1 deletion applications/scripts/datafix-ab#007.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
test 1
test 2
test 3
test 3
test 4

0 comments on commit 6f61665

Please sign in to comment.