Skip to content

Commit

Permalink
WIP heroku-24
Browse files Browse the repository at this point in the history
  • Loading branch information
edmorley committed May 18, 2024
1 parent 5bf5ec2 commit 75d6aa7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
strategy:
fail-fast: false
matrix:
stack_version: ["20", "22"]
stack_version: ["20", "22", "24"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
stack_version: ["20", "22"]
stack_version: ["20", "22", "24"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# These targets are not files
.PHONY: compile test buildenv

STACK_VERSION ?= 22
STACK_VERSION ?= 24
STACK := heroku-$(STACK_VERSION)
BASE_BUILD_IMAGE := heroku/heroku:$(STACK_VERSION)-build
PLATFORM := linux/amd64
Expand All @@ -10,15 +10,15 @@ compile:
@echo "Running compile using: STACK_VERSION=$(STACK_VERSION)"
@echo "To use a different stack, run: 'make compile STACK_VERSION=NN'"
@echo
@docker run --rm --platform=$(PLATFORM) -v "$(PWD):/src:ro" -e "STACK=$(STACK)" -w /buildpack "$(BASE_BUILD_IMAGE)" \
bash -c 'cp -r /src/bin /buildpack && mkdir -p /tmp/{build,cache,env} && bin/compile /tmp/build /tmp/cache /tmp/env'
@docker run --rm --platform=$(PLATFORM) -v "$(PWD)/bin:/buildpack/bin:ro" -e "STACK=$(STACK)" -w /buildpack "$(BASE_BUILD_IMAGE)" \
bash -c 'mkdir -p /tmp/{build,cache,env} && bin/compile /tmp/build /tmp/cache /tmp/env'
@echo

test:
@echo "Running tests using: STACK_VERSION=$(STACK_VERSION)"
@echo "To use a different stack, run: 'make test STACK_VERSION=NN'"
@echo
@docker run --rm --platform=$(PLATFORM) -v "$(PWD):/buildpack:ro" -e "STACK=$(STACK)" "$(BASE_BUILD_IMAGE)" /buildpack/tests.sh
@docker run --rm --platform=$(PLATFORM) --user root -v "$(PWD):/buildpack:ro" -e "STACK=$(STACK)" "$(BASE_BUILD_IMAGE)" /buildpack/tests.sh
@echo

buildenv:
Expand Down
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ vendor_lib() {
VENDOR_DIR=$3

echo "-----> Installing $LIBRARY-$VERSION"
LIBRARY_URL="https://heroku-buildpack-geo.s3.amazonaws.com/${STACK}/${LIBRARY}/${LIBRARY}-${VERSION}.tar.gz"
LIBRARY_URL="https://heroku-buildpack-geo.s3.us-east-1.amazonaws.com/${STACK}/${LIBRARY}/${LIBRARY}-${VERSION}.tar.gz"

mkdir -p "$VENDOR_DIR"
if ! curl -sSf --retry 3 --retry-connrefused --connect-timeout 10 "${LIBRARY_URL}" | tar -zx -C "${VENDOR_DIR}"; then
Expand Down

0 comments on commit 75d6aa7

Please sign in to comment.