Skip to content

Commit d5a28b0

Browse files
committed
fix(workflow): update artifact naming for Small and Medium versions in deployment script
1 parent 17a5897 commit d5a28b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/maven_build_deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
#Packaging Standard backend
4747
- name: Packaging Small (S) Version
4848
run: |
49-
# Calculate new filename: replace '${microserviceName}' with '${microserviceName}-s'
50-
NEW_FILENAME=$(echo "${{ env.artifact_filename }}" | sed 's/${microserviceName}/${microserviceName}-s/')
49+
# Calculate new filename: replace 'maintenance-module' with 'maintenance-module-s'
50+
NEW_FILENAME=$(echo "${{ env.artifact_filename }}" | sed 's/maintenance-module/maintenance-module-s/')
5151
5252
# Extract cumulocity.json from the artifact to a temporary file
5353
unzip -p ./target/${{ env.artifact_filename }} cumulocity.json > ./target/cumulocity-base.json
@@ -71,8 +71,8 @@ jobs:
7171
retention-days: 7
7272
- name: Packaging Medium (M) Version
7373
run: |
74-
# Calculate new filename: replace '${microserviceName}' with '${microserviceName}-m'
75-
NEW_FILENAME=$(echo "${{ env.artifact_filename }}" | sed 's/${microserviceName}/${microserviceName}-m/')
74+
# Calculate new filename: replace 'maintenance-module' with 'maintenance-module-m'
75+
NEW_FILENAME=$(echo "${{ env.artifact_filename }}" | sed 's/maintenance-module/maintenance-module-m/')
7676
7777
# Extract cumulocity.json from the artifact to a temporary file
7878
unzip -p ./target/${{ env.artifact_filename }} cumulocity.json > ./target/cumulocity-base.json
@@ -97,4 +97,4 @@ jobs:
9797
- name: Deploy to test environment
9898
uses: reubenmiller/setup-go-c8y-cli@main
9999
- run: |
100-
c8y microservices create --file target/${{ env.artifact_filename_s }} --name ${microserviceName} --key ${microserviceName}
100+
c8y microservices create --file target/${{ env.artifact_filename_s }} --name maintenance-module --key maintenance-module

0 commit comments

Comments
 (0)