Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcev authored Sep 2, 2024
1 parent fd51b48 commit 0953cdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
outputs:
artifact-with-tag: ${{ steps.cfg.outputs.artifact-with-tag }}
artifact-name: ${{ steps.cfg.outputs.artifact-name }}
commit-hash: ${{ steps.cfg.outputs.commit-hash }}
# artifact-with-tag: ludoapp
steps:
- name:
Expand All @@ -42,6 +43,7 @@ jobs:
DATE=$(date +%y%m%d)
COMMIT_HASH=${GITHUB_SHA::7}
ARTIFACT_NAME="${{ env.APP_NAME }}-$DATE-$COMMIT_HASH-${{ env.ENV }}.jar"
echo "commit-hash=$COMMIT_HASH" >> $GITHUB_OUTPUT
echo "artifact-name=$ARTIFACT_NAME" >> $GITHUB_OUTPUT
echo "generated artifact-name: $ARTIFACT_NAME"
# <app>-<env>-<date>-<hash>
Expand Down Expand Up @@ -133,6 +135,8 @@ jobs:
env: ${{ env.ENV }}
dockerhub-username: ${{ vars.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
app-name: ${{ env.APP_NAME }}
commit-hash: ${{ needs.cfg.outputs.commit-hash }}
artifact-name: ${{ needs.cfg.outputs.artifact-name }}
artifact-build-path: ${{ env.ARTIFACT_BUILD_PATH }}

Expand Down

0 comments on commit 0953cdc

Please sign in to comment.