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

Fix release workflow yq #1274

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/release-create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,27 @@ jobs:

- name: Install yq
shell: bash
env:
VERSION: "v4.45.1"
BINARY: "yq_linux_amd64"
EXPECTED_CHECKSUM: "654d2943ca1d3be2024089eb4f270f4070f491a0610481d128509b2834870049"
run: |
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install yq -y
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O ./yq && chmod +x ./yq
kolodziejczak marked this conversation as resolved.
Show resolved Hide resolved
echo "Generating downloaded yq binary sha256 checksum..."
generated_checksum=$(shasum -a256 ./yq | awk '{ print $1 }')
if [ "$generated_checksum" == "$EXPECTED_CHECKSUM" ]; then
echo "Checksums match."
else
echo "Checksums do not match."
exit 1
fi
- name: Check security-scanner config
shell: bash
run: |
if [[ $( yq eval ".protecode[0]" sec-scanners-config.yaml ) == "europe-docker.pkg.dev/kyma-project/prod/istio/releases/istio-manager:${{ github.event.inputs.version }}" ]]; then
if [[ $( ./yq eval ".protecode[0]" sec-scanners-config.yaml ) == "europe-docker.pkg.dev/kyma-project/prod/istio/releases/istio-manager:${{ github.event.inputs.version }}" ]]; then
echo "Image tag in sec-scanners-config matches release ${{ github.event.inputs.version }}"
exit 0
else
echo "Error: istio-manager image tag in sec-scanners-config doesn't match release ${{ github.event.inputs.version }}"
Expand Down
Loading