forked from argoproj/rollouts-demo
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
858607c
commit 7669530
Showing
2 changed files
with
6 additions
and
5 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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jobs: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
run: | | ||
export VERSION=$(cat service.yaml) | ||
export CF_IMAGE=docker.io/$DOCKERHUB_USERNAME/${{ github.event.repository.name }}-test:$VERSION | ||
export CF_IMAGE=docker.io/$DOCKERHUB_USERNAME/${{ github.event.repository.name }}:$VERSION | ||
echo "CF_IMAGE=$CF_IMAGE" >> $GITHUB_ENV | ||
docker build . --file Dockerfile --build-arg COLOR=$VERSION --tag $CF_IMAGE && docker push $CF_IMAGE | ||
|
@@ -53,7 +53,7 @@ jobs: | |
|
||
# GitHub authentication token. !! Committing a plain text token is a security risk. We highly recommend using encrypted secrets. !! | ||
# Documentation - https://docs.github.com/en/actions/security-guides/encrypted-secrets | ||
CF_GITHUB_TOKEN: ${{secrets.GH_TOKEN}} | ||
CF_GITHUB_TOKEN: ${{secrets.GH_TOKEN }} | ||
|
||
# Issue tracking integration to use to enrich the image. | ||
CF_JIRA_INTEGRATION: 'jira' | ||
|
@@ -63,7 +63,7 @@ jobs: | |
CF_JIRA_PROJECT_PREFIX: 'CR' | ||
|
||
# Search for issue IDs matching this string to associate with your image. | ||
CF_JIRA_MESSAGE: CR-0000 | ||
CF_JIRA_MESSAGE: CR-22087 | ||
|
||
CF_VERBOSE: "true" | ||
|
||
|
@@ -76,11 +76,11 @@ jobs: | |
path: . | ||
- name: Update application version | ||
run: | | ||
IMAGE=${{ env.CF_IMAGE }} yq -i '.spec.template.spec.containers.[0].image = strenv(IMAGE)' canary-rollout/deploy/canary-rollout.yaml | ||
IMAGE=${{ env.CF_IMAGE }} yq -i '.spec.template.spec.containers.[0].image = strenv(IMAGE)' deploy/canary-rollout.yaml | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
token: ${{ secrets.GH_TOKEN }} | ||
commit-message: Update version | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
blue |