-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: madhavilosetty-intel <[email protected]>
- Loading branch information
1 parent
160c234
commit 75a93e3
Showing
3 changed files
with
8 additions
and
76 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -43,6 +43,12 @@ jobs: | |
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
logout: true | ||
- name: Docker Login DockerHub | ||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0 | ||
with: | ||
registry: docker.io | ||
username: ${{ secrets.INTC_DOCKER_USERNAME }} | ||
password: ${{ secrets.INTC_DOCKER_PASSWORD }} | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@b1b432f13acb7768e0c8efdec416d363a57546f2 # v4.1.1 | ||
with: | ||
|
@@ -55,39 +61,3 @@ jobs: | |
@semantic-release/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ROSIE_TOKEN }} | ||
|
||
- name: Get Next Version | ||
id: version | ||
run: | | ||
if [ -f .nextVersion ]; then | ||
echo "next=$(cat .nextVersion)" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "next=none" >> "$GITHUB_OUTPUT" | ||
fi | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
if: ${{ steps.version.outputs.next != 'none' }} | ||
with: | ||
repository: open-amt-cloud-toolkit/e2e-testing | ||
ref: docker-release | ||
clean: true | ||
token: ${{ secrets.ROSIE_TOKEN }} | ||
|
||
- name: Create docker-release @ ${{ steps.version.outputs.next }} | ||
if: ${{ steps.version.outputs.next != 'none' }} | ||
env: | ||
RELEASE_YAML: release/rps.yml | ||
NEXT_VERSION: ${{ steps.version.outputs.next }} | ||
run: | | ||
echo "Releasing ${{ github.repository }}@$NEXT_VERSION" | ||
if [ "$NEXT_VERSION" != "" ]; then | ||
CURRENT_VERSION=$(sed -nre 's/(.*):v[0-9]*(([0-9]+\\.)*[0-9]+).*/v\\2/p' $RELEASE_YAML) | ||
sed -i "s/$CURRENT_VERSION/$NEXT_VERSION/g" $RELEASE_YAML | ||
echo "=========================" | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git status | ||
git add . | ||
git commit -m "release(rps): automated release of $NEXT_VERSION @ ${GITHUB_SHA::7}" | ||
git push origin docker-release | ||
fi |
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