Skip to content

Commit

Permalink
ci: Minor pipeline adjustments (#156)
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz Wiesinger <[email protected]>
  • Loading branch information
thschue and mowies authored Oct 13, 2022
1 parent d183e4f commit 1639009
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,18 @@ jobs:
- name: Build Docker Images
working-directory: ./${{ matrix.config.working-dir }}
env:
TAG: dev-${{ env.DATETIME }}
run: |
make release-image TAG=dev-${{ env.DATETIME }}
make release-image
- name: Push Docker Images
if: ( github.actor != 'renovate[bot]' && github.actor != 'dependabot[bot]' ) && ( github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository )
working-directory: ./${{ matrix.config.working-dir }}
env:
TAG: dev-${{ env.DATETIME }}
run: |
make push-release-images TAG=dev-${{ env.DATETIME }}
make push-release-images
- name: Install controller-gen
if: matrix.config.artifact == 'keptn-lifecycle-operator' && ( github.actor != 'renovate[bot]' && github.actor != 'dependabot[bot]' ) && ( github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository )
Expand All @@ -193,7 +197,9 @@ jobs:
- name: Generate release.yaml
if: matrix.config.artifact != 'functions-runtime' && ( github.actor != 'renovate[bot]' && github.actor != 'dependabot[bot]' ) && ( github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository )
working-directory: ./${{ matrix.config.working-dir }}
run: make release-manifests TAG=dev-${{ env.DATETIME }}
env:
TAG: dev-${{ env.DATETIME }}
run: make release-manifests

- name: Upload release.yaml
if: matrix.config.artifact != 'functions-runtime' && ( github.actor != 'renovate[bot]' && github.actor != 'dependabot[bot]' ) && ( github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository )
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,19 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create images and manifests
env:
TAG: ${{ needs.release-please.outputs.tag_name }}
run: |
cd functions-runtime
make build-and-push-image TAG=${{ needs.release-please.outputs.tag_name }}
make build-and-push-image
cd ../scheduler
go mod tidy
make build-and-push-image TAG=${{ needs.release-please.outputs.tag_name }}
make release-manifests TAG=${{ needs.release-please.outputs.tag_name }}
make build-and-push-image
make release-manifests
cd ../operator
go mod tidy
make build-and-push-image TAG=${{ needs.release-please.outputs.tag_name }}
make controller-gen release-manifests TAG=${{ needs.release-please.outputs.tag_name }}
make build-and-push-image
make controller-gen release-manifests
cd ..
echo "---" >> operator/config/rendered/release.yaml
cat operator/config/rendered/release.yaml scheduler/config/rendered/release.yaml > manifest.yaml
Expand Down
1 change: 0 additions & 1 deletion functions-runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ release-image.arm64v8: clean

.PHONY: push-release-images
push-release-images:
#gcloud auth configure-docker
for arch in $(ARCHS); do \
docker push $(RELEASE_REGISTRY)/$(RELEASE_IMAGE)-$${arch} ;\
done
Expand Down

0 comments on commit 1639009

Please sign in to comment.