Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
#2752 Updated according to comments
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kreuzberger <christian.kreuzberger@dynatrace.com>
  • Loading branch information
christian-kreuzberger-dtx committed Dec 17, 2020
1 parent 4947121 commit b6e3693
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
runs-on: ubuntu-20.04
outputs: # declare what this job outputs (so it can be re-used for other jobs)
# build config
BUILD_EVERYTHING: ${{ steps.BUILD_EVERYTHING.outputs.BUILD_EVERYTHING }}
BUILD_INSTALLER: ${{ steps.BUILD_EVERYTHING.outputs.BUILD_INSTALLER }}
BUILD_API: ${{ steps.BUILD_EVERYTHING.outputs.BUILD_API }}
BUILD_EVERYTHING: ${{ steps.build_everything.outputs.BUILD_EVERYTHING }}
BUILD_INSTALLER: ${{ steps.check_modified_files.outputs.BUILD_INSTALLER }}
BUILD_API: ${{ steps.check_modified_files.outputs.BUILD_API }}
BUILD_CLI: ${{ steps.check_modified_files.outputs.BUILD_CLI }}
BUILD_OS_ROUTE_SVC: ${{ steps.check_modified_files.outputs.BUILD_OS_ROUTE_SVC }}
BUILD_BRIDGE: ${{ steps.check_modified_files.outputs.BUILD_BRIDGE }}
Expand Down Expand Up @@ -67,14 +67,14 @@ jobs:

- name: Process all artifacts (for push on master/release branches)
if: github.event_name == 'push'
id: BUILD_EVERYTHING
id: build_everything
run: |
BUILD_EVERYTHING=true
echo "##[set-output name=BUILD_EVERYTHING;]$(echo ${BUILD_EVERYTHING})"
- name: Process only certain artifacts based on changed files (for PRs only)
if: github.event_name == 'pull_request'
id: check_modified_files
id: check_modified_filesbuild_everything
run: |
# initialize variables with false (make sure they are also set in needs.prepare_ci_run.outputs !!!)
BUILD_INSTALLER=false
Expand Down Expand Up @@ -299,6 +299,7 @@ jobs:
working-directory: ./gatekeeper-service

- name: Test distributor svc
if: (needs.prepare_ci_run.outputs.BUILD_EVERYTHING == 'true') || (needs.prepare_ci_run.outputs.BUILD_DISTRIBUTOR == 'true')
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
working-directory: ./distributor

Expand Down
2 changes: 1 addition & 1 deletion gh-actions-scripts/build_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cd ./${FOLDER}
# uncomment certain lines from Dockerfile that are for Travis builds only
sed -i '/#travis-uncomment/s/^#travis-uncomment //g' Dockerfile
cat MANIFEST
docker build . -t "${IMAGE}:${GIT_SHA}" -t "${IMAGE}:${VERSION}.${DATETIME}" -t "${IMAGE}:${VERSION}" --build-arg version="${VERSION}"
docker build . -t "${IMAGE}:${VERSION}.${DATETIME}" -t "${IMAGE}:${VERSION}" --build-arg version="${VERSION}"

if [[ $? -ne 0 ]]; then
echo "Failed to build Docker Image ${IMAGE}:${VERSION}.${DATETIME}, exiting"
Expand Down

0 comments on commit b6e3693

Please sign in to comment.