Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAH-4097 | Add. Tag Based Trigger And Version Script To Build Workflow #143

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .github/workflows/atomfeed_console_build_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build and Publish atomfeed-console Image
on:
push:
branches: [master]
tags:
- '[0-9]+.[0-9]+.[0-9]+'
paths:
- 'atomfeed-console/**'
- '.github/workflows/atomfeed_console_build_publish.yaml'
Expand All @@ -23,16 +25,11 @@ jobs:
needs: Trivy
steps:
- uses: actions/checkout@v4
- name: Verify app version
- name: Set env.ARTIFACT_VERSION
run: |
APP_VERSION=$(cat atomfeed-console/.appversion)
if [ $(git tag -l "$APP_VERSION") ]; then
echo "App version $APP_VERSION already released. Please update app version in package/.appversion to represent next major/minor/patch increment"
exit 1
else
echo "setting artifact version to $(echo $APP_VERSION-${{github.run_number}})"
echo "ARTIFACT_VERSION=$(echo $APP_VERSION-${{github.run_number}})" >> $GITHUB_ENV
fi
wget -q https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/setArtifactVersion.sh && chmod +x setArtifactVersion.sh
./setArtifactVersion.sh
rm setArtifactVersion.sh
- name: Download atomfeed-console jar
run: |
curl -H "Accept: application/vnd.github.v3+json" \
Expand Down
Loading