Skip to content

Commit

Permalink
demo; Thu Jan 4 16:33:51 +03 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-klimko committed Jan 4, 2024
1 parent 858607c commit 7669530
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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"

Expand All @@ -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>
Expand Down
1 change: 1 addition & 0 deletions service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blue

0 comments on commit 7669530

Please sign in to comment.