Skip to content

Commit

Permalink
ci: review rework for ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
at88mph committed Nov 22, 2024
1 parent baab3e2 commit fc87a39
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.edge.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ jobs:
id: cosign
run: |
cosign version
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ env.TAG }} --upload
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.build.outputs.digest }} --upload
12 changes: 1 addition & 11 deletions .github/workflows/cd.release.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ jobs:
registry: images.opencadc.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
-
name: Sanitize Release Tag
id: sanitize-tag
run: |
echo "Sanitizing Tag: ${{ env.TAG_RELEASE }}"
export SANITIZED_TAG_RELEASE=$(echo ${{ env.TAG_RELEASE }} | sed 's/^v//'
echo "Sanitized Tag: $SANITIZED_TAG_RELEASE"
echo SANITIZED_TAG_RELEASE=$SANITIZED_TAG_RELEASE >> $GITHUB_ENV
-
name: Build and Push Docker Image
id: build
Expand All @@ -62,7 +54,7 @@ jobs:
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ env.TAG }}
${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ env.TAG_RELEASE }}
${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ env.SANITIZED_TAG_RELEASE }}
${{ env.REGISTRY }}/${{ env.IMAGE }}:v${{ env.TAG_RELEASE }}
labels: |
org.opencontainers.image.title=Science Portal
org.opencontainers.image.version=${{ env.TAG_RELEASE }}
Expand Down Expand Up @@ -92,6 +84,4 @@ jobs:
id: cosign
run: |
cosign version
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ env.TAG }} --upload
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ env.TAG_RELEASE }} --upload
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.build.outputs.digest }} --upload
3 changes: 0 additions & 3 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
release-please:
Expand Down
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"draft": false,
"prerelease": false,
"include-component-in-tag": false,
"include-v-in-tag": true,
"include-v-in-tag": false,
"extra-files": [
"gradle.properties"
]
Expand Down

0 comments on commit fc87a39

Please sign in to comment.