Skip to content

Commit

Permalink
fix: Supply devbox env-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiwalyajoshi committed Oct 27, 2024
1 parent da6f7cb commit 0b3906f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-on-demand.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
build-trivy-bundle:
runs-on:
- self-hosted-nutanix-docker-large
#- ubuntu-latest
outputs:
IMAGE_TIMESTAMP: ${{ steps.build-and-push-image.outputs.IMAGE_TIMESTAMP }}
steps:
Expand Down Expand Up @@ -46,6 +47,10 @@ jobs:
- name: Build and push a trivy-bundles image
id: build-and-push-image
run: |
# IMAGE_TIMESTAMP=$(date -u +%Y%m%dT%H%M%SZ)
# TRIVY_VERSION=${{ inputs.trivyVersion }} TIMESTAMP=$IMAGE_TIMESTAMP make publish-trivy-bundled-image
# echo "IMAGE_TIMESTAMP=$IMAGE_TIMESTAMP" >> $GITHUB_OUTPUT
IMAGE_TIMESTAMP=$(date -u +%Y%m%dT%H%M%SZ)
devbox run -- TIMESTAMP=$IMAGE_TIMESTAMP TRIVY_VERSION=${{ inputs.trivyVersion }} make publish-trivy-bundled-image
devbox run -- make publish-trivy-bundled-image -e TRIVY_VERSION=${{ inputs.trivyVersion }} -e TIMESTAMP=$IMAGE_TIMESTAMP
echo "IMAGE_TIMESTAMP=$IMAGE_TIMESTAMP" >> $GITHUB_OUTPUT

0 comments on commit 0b3906f

Please sign in to comment.