-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate steps for GCP operator release
- Loading branch information
1 parent
545745d
commit 510a5ea
Showing
1 changed file
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,13 +117,51 @@ jobs: | |
echo "jar_version=$(mvn help:evaluate -Dexpression=project.version | grep -e '^[1-9][^\[]')" >> $GITHUB_OUTPUT | ||
echo "git_commit=$(git show --format="%h" --no-patch)" >> $GITHUB_OUTPUT | ||
cp -r target ${{ env.DOCKER_CONTEXT_PATH }}/ | ||
e2e: | ||
name: Run E2E tests | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
security-events: write | ||
packages: write | ||
pull-requests: write | ||
needs: buildImage | ||
steps: | ||
- name: Checkout full history on Main | ||
uses: actions/checkout@v4 | ||
if: ${{ inputs.version_number_input == ''}} | ||
with: | ||
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout. | ||
fetch-depth: 0 | ||
|
||
- name: Checkout full history at tag v${{ inputs.version_number_input }} | ||
uses: actions/checkout@v4 | ||
if: ${{ inputs.version_number_input != ''}} | ||
with: | ||
ref: v${{ inputs.version_number_input }} | ||
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout. | ||
fetch-depth: 0 | ||
|
||
- name: Restore timestamps | ||
uses: thetradedesk/[email protected] | ||
|
||
- name: E2E | ||
uses: ./.github/workflows/run-e2e-tests-on-operator.yaml | ||
with: | ||
operator_image_version: ${{ steps.updatePom.outputs.image_tag }} | ||
operator_branch: ${{ github.ref }} | ||
|
||
|
||
release: | ||
name: Create releases | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
security-events: write | ||
packages: write | ||
pull-requests: write | ||
needs: e2e | ||
steps: | ||
- name: Commit pom.xml and version.json | ||
if: ${{ inputs.version_number_input == '' && steps.checkRelease.outputs.IS_RELEASE != 'true' }} | ||
uses: EndBug/add-and-commit@v9 | ||
|