Skip to content

Commit

Permalink
Merge pull request itpp-labs#11 from yelizariev/ci-fixes
Browse files Browse the repository at this point in the history
Concourse CI: final fixes
  • Loading branch information
Ivan Yelizariev committed Nov 23, 2019
2 parents 2a5aba5 + 5add7eb commit 2fae6c2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions concourse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ resources:
- name: docker-registry
type: docker-image
source:
repository: docker.pkg.github.com/it-projects-llc/hound/dev
repository: docker.pkg.github.com/it-projects-llc/hound/pr
username: ((github-username))
password: ((github-token))

jobs:
- name: build_image
- name: review-pull-request
plan:
- get: pr
trigger: true
Expand All @@ -48,14 +48,14 @@ jobs:
args:
- -xce
- |
BASE_SHA=$(cat pr/.git/resource/base_sha)
HEAD_SHA=$(cat pr/.git/resource/head_sha)
BASE_SHA=$(cat pr/.git/resource/base_sha | cut -c 1-7)
HEAD_SHA=$(cat pr/.git/resource/head_sha | cut -c 1-7)
PR_NUM=$(cat pr/.git/resource/pr)
TAG="pr-$PR-head-$HEAD_SHA-base-$BASE"
TAG="pr-$PR_NUM-head-$HEAD_SHA-base-$BASE_SHA"
echo $TAG > pr-info/tag.txt
echo "To test updates run:
docker run -p 6080:6080 --rm docker.pkg.github.com/it-projects-llc/hound/dev:$TAG
docker run -p 6080:6080 --rm docker.pkg.github.com/it-projects-llc/hound/pr:$TAG
You may need be [authenticated](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line):
Expand All @@ -75,6 +75,7 @@ jobs:
build: pr
dockerfile: pr/DockerfilePR
tag_file: pr-info/tag.txt
get_params: {skip_download: true}

on_failure:
put: set-status-failure
Expand Down

0 comments on commit 2fae6c2

Please sign in to comment.