Skip to content

🎷cosign version is updated🎷 #25

🎷cosign version is updated🎷

🎷cosign version is updated🎷 #25

name: tl500-stack-image-pr
on:
pull_request:
paths:
- codereadyworkspaces/stack/**
- .github/workflows/tl500-stack-image-pr.yaml
jobs:
build:
runs-on: ubuntu-20.04
env:
context: codereadyworkspaces/stack
image_name: stack-tl500
steps:
- uses: actions/checkout@v1
- name: Get image tags
id: image_tags
run: |
echo -n ::set-output name=IMAGE_TAGS::
# exposes variable VERSION
source ${context}/VERSION
echo ${VERSION}
- name: Build image
uses: redhat-actions/[email protected]
with:
context: ${{ env.context }}
dockerfiles: |
./${{ env.context }}/Dockerfile
image: ${{ env.image_name }}
oci: true
tags: ${{ steps.image_tags.outputs.IMAGE_TAGS }}
- name: Test image to check the version of CLIs
run: |
export `podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} env | grep _VERSION`
echo "Running: podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} to check CLIs version"
echo "⚓️check helm version"
podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} helm version | grep $HELM_VERSION
echo "🦭check kubeseal --version"
podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} kubeseal --version | grep $KUBESEAL_VERSION
echo "🐙check argocd version"
podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} argocd version | grep $ARGOCD_VERSION
echo "🌲check conftest --version"
podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} conftest --version | grep $CONFTEST_VERSION
echo "🦨check yq --version"
podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} yq --version | grep $YQ_VERSION
echo "🦨check jq --version"
podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} jq --version | grep $JQ_VERSION
echo "🦨check syft --version"
podman run ${{ env.image_name }}:${{ steps.image_tags.outputs.IMAGE_TAGS }} syft --version | grep $SYFT_VERSION