Skip to content

Commit

Permalink
feat: update backstage file and workflows (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrwils authored Jan 22, 2025
1 parent c802f3d commit 8c98207
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-intention.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
"environment": "tools"
},
"package": {
"architecture": "jvm",
"version": "",
"buildVersion": "",
"buildNumber": 0,
"name": "java-maven-pipeline-example",
"type": "war"
"type": "war",
"license": "Apache-2.0"
}
}
],
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
broker_jwt: ${{ secrets.broker_jwt_0e727e83_f027_426a_a31c_d7c1cceaddf6 }}
intention_path: intention.json
quickstart: true
- name: Set intention ID for deployment job
- name: Echo intention ID for deploy job
id: set-intention-id
run: |
echo "intention_id=${INTENTION_ID}" >> $GITHUB_OUTPUT
Expand All @@ -119,6 +119,13 @@ jobs:
ARTIFACT_SHA256: ${{ steps.publish-artifact.outputs.artifact_sha256 }}
BUILD_TOKEN: ${{ env.ACTION_TOKEN_BUILD }}
- name: Close intention
uses: bcgov-nr/action-broker-intention-close@v1
if: ${{ success() && env.INTENTION_TOKEN != '' }}
uses: bcgov-nr/action-broker-intention-close@v3
with:
intention_token: ${{ env.INTENTION_TOKEN }}
- name: Close intention (Failure)
if: ${{ failure() && env.INTENTION_TOKEN != '' }}
uses: bcgov-nr/action-broker-intention-close@v3
with:
intention_token: ${{ env.INTENTION_TOKEN }}
outcome: failure
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ jobs:
curl \
--data-urlencode "token=${{ secrets.JENKINS_TOKEN }}" \
--data-urlencode "githubToken=${{ secrets.GITHUB_TOKEN }}" \
--data-urlencode "brokerJwt=${{ secrets.broker_jwt_0e727e83_f027_426a_a31c_d7c1cceaddf6 }}" \
--data-urlencode "artifactSha256=${ARTIFACT_SHA256}" \
--data-urlencode "projectVersion=${PROJECT_VERSION}" \
--data-urlencode "gitBranch=${{ github.ref_name }}" \
Expand Down
15 changes: 9 additions & 6 deletions app-config.yaml → catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
spec:
system: oneteam-example
type: ""
lifecycle: ""
owner: ""
type: "website"
lifecycle: "experimental"
owner: "Oscar"
metadata:
name: java-maven-pipeline-example
description: ""
title: ""
description: "Pipeline testing example for Java + Maven + Tomcat application"
title: "ONETEAM-EXAMPLE"
annotations:
playbook.io.nrs.gov.bc.ca/pomRoot: ./
playbook.io.nrs.gov.bc.ca/unitTestsPath: ""
Expand All @@ -20,5 +20,8 @@ metadata:
playbook.io.nrs.gov.bc.ca/useAltAppDirName: false
playbook.io.nrs.gov.bc.ca/altAppDirName: ""
playbook.io.nrs.gov.bc.ca/addWebadeConfig: false
github.com/project-slug: ""
github.com/project-slug: "bcgov/java-maven-pipeline-example"
playbook.io.nrs.gov.bc.ca/clientId: 0e727e83-f027-426a-a31c-d7c1cceaddf6
license: Apache-2.0
apiVersion: backstage.io/v1alpha1
kind: Component

0 comments on commit 8c98207

Please sign in to comment.