Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cr 1234 #6

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
20 changes: 12 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Github-action-demo

on:
push:
branches: [ master ]
pull_request:
branches:
- main
types:
- closed
jobs:
build:
environment:
Expand All @@ -14,11 +17,11 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build & push the Docker image
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USER }}
run: |
export VERSION=$(cat service.yaml)
export CF_IMAGE=$DOCKERHUB_USERNAME/${{ github.event.repository.name }}:$VERSION
Expand All @@ -27,18 +30,19 @@ jobs:
- name: Report image
with:
CF_IMAGE: ${{ env.CF_IMAGE }}
CF_HOST: "https://mr-5f04515c6f790a046303eb5a-d0a662e.cf-cd.com"
CF_HOST: "https://mr-62e11313baf09e2d31eafdb0-202e3f9.cf-cd.com"
CF_API_KEY: ${{ secrets.CF_API_KEY }}
CF_CONTAINER_REGISTRY_INTEGRATION: "docker"
CF_CONTAINER_REGISTRY_INTEGRATION: "dockerhub"
CF_JIRA_INTEGRATION: "jira"
CF_GITHUB_TOKEN: ${{ secrets.PAT }}
CF_JIRA_MESSAGE: "${{ github.event.head_commit.message }}"
CF_JIRA_MESSAGE: "${{ github.event.pull_request.head.ref }}"
CF_GIT_BRANCH: "${{ github.event.pull_request.head.ref }}"
CF_JIRA_PROJECT_PREFIX: "CR"
uses: codefresh-io/codefresh-report-image@latest
- name: Checkout csdp-salesdemo_applications
uses: actions/checkout@v3
with:
repository: idan-codefresh/canary-rollout # change to real repo
repository: razielt77/canary-rollout # change to real repo
path: .
- name: Update application version
run: |
Expand Down
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
blue
purple