Skip to content

Commit

Permalink
Build info file now built manually
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Mar 15, 2021
1 parent 230d974 commit 1f42cb4
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,24 @@ jobs:
--apiKey=${{ secrets.OCTOPUS_API_KEY }}
--package target/app.0.1.${{ github.run_number }}.jar
- name: Generate Octopus Deploy build information
uses: xo-energy/[email protected]
with:
octopus_api_key: ${{ secrets.OCTOPUS_API_KEY }}
octopus_server: ${{ secrets.OCTOPUS_SERVER_URL }}
octopus_space: ${{ secrets.OCTOPUS_SERVER_SPACE}}
output_path: octopus
push_package_ids: app
push_version: ${{ github.ref }}
- name: Build Package Info
run: >-
echo "{
\"PackageId\": \"app\",
\"Version\": \"0.1.${{ github.run_number }}\",
\"BuildUrl\": \"https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}\",
\"OctopusBuildInformation\": {
\"BuildEnvironment\":\"GithubActions\",
\"VcsCommitNumber\":\"${{ github.ref }}\",
\"VcsType\": \"Git\",
\"VcsRoot\": \"https://github.com/OctopusSamples/RandomQuotes-Java\"}}" > buildinfo.json; echo buildinfo.json
- name: Push Build Info Package
run: >
octo build-information
--space=${{ secrets.OCTOPUS_SERVER_SPACE}}
--server=${{ secrets.OCTOPUS_SERVER_URL }}
--apiKey=${{ secrets.OCTOPUS_API_KEY }}
--package-id=app
--version=0.1.${{ github.run_number }}
--file=buildinfo.json

0 comments on commit 1f42cb4

Please sign in to comment.