Skip to content

Commit

Permalink
Curious if these build
Browse files Browse the repository at this point in the history
  • Loading branch information
mamercad committed Jan 21, 2023
1 parent 077df77 commit 7cf08c8
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/packer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,33 @@ env:
jobs:
packer:
runs-on: macos-12
timeout-minutes: 60
timeout-minutes: 120
strategy:
fail-fast: false
max-parallel: 1
matrix:
st2_version:
- "3.8.0"
- "3.7.0"
- "3.6.0"
steps:
- name: Checkout code
uses: actions/checkout@v3

# NOTE: Even though ST2_VERSION is the same in the Makefile it is arguably nice to see it here.
- name: Export ST2_VERSION and BOX_VERSION
run: |
ST2_VERSION="$(curl --silent 'https://api.github.com/repos/stackstorm/st2/releases/latest' | jq -r .tag_name | sed 's/^v//')"
if [[ -z "$ST2_VERSION" || "$ST2_VERSION" == "null" ]]; then
echo "Empty or null ST2_VERSION"
exit 1
else
echo "ST2_VERSION=${ST2_VERSION}" >> $GITHUB_ENV
echo "::notice::ST2_VERSION $ST2_VERSION"
fi
# ST2_VERSION="$(curl --silent 'https://api.github.com/repos/stackstorm/st2/releases/latest' | jq -r .tag_name | sed 's/^v//')"
# if [[ -z "$ST2_VERSION" || "$ST2_VERSION" == "null" ]]; then
# echo "Empty or null ST2_VERSION"
# exit 1
# else
# echo "ST2_VERSION=${ST2_VERSION}" >> $GITHUB_ENV
# echo "::notice::ST2_VERSION $ST2_VERSION"
# fi
ST2_VERSION="${{ matrix.st2_version }}"
echo "ST2_VERSION=${ST2_VERSION}" >> $GITHUB_ENV
echo "::notice::ST2_VERSION $ST2_VERSION"
BOX_VERSION="$(date -u +%Y%m%d)-${{ github.run_number }}.${{ github.run_attempt }}"
if [[ -z "$BOX_VERSION" ]]; then
echo "Empty BOX_VERSION"
Expand Down

0 comments on commit 7cf08c8

Please sign in to comment.