@@ -100,6 +100,65 @@ jobs:
100100 cat apppack.toml
101101 test "$(python -c 'import tomllib; print(tomllib.load(open("apppack.toml", "rb"))["services"]["web"]["command"])')" = "bash -c 'gunicorn --access-logfile - --bind 0.0.0.0:\$PORT --forwarded-allow-ips '\"'\"'*'\"'\"' app:app'"
102102
103+ integration-heroku24 :
104+ runs-on : ubuntu-latest
105+ needs : [test, build-image]
106+ permissions :
107+ id-token : write
108+ contents : read
109+ packages : read
110+ steps :
111+ - name : Login to GitHub Container Registry
112+ uses : docker/login-action@v2
113+ with :
114+ registry : ghcr.io
115+ username : ${{ github.actor }}
116+ password : ${{ secrets.GITHUB_TOKEN }}
117+ - name : Pull image
118+ run : docker pull ${{ needs.build-image.outputs.image }}
119+ - name : configure aws credentials
120+ uses : aws-actions/configure-aws-credentials@v4
121+ with :
122+ role-to-assume : arn:aws:iam::891426818781:role/github-actions-integration-tests
123+ aws-region : us-east-1
124+ - name : Checkout sample repo
125+ run : git clone --branch buildpacks-24 https://github.com/apppackio/apppack-demo-python.git
126+ - name : Run integration tests
127+ working-directory : ./apppack-demo-python
128+ run : |
129+ cat <<EOF > .envfile
130+ APPNAME=gh-integration
131+ CODEBUILD_BUILD_ID=demo-python:${{ github.run_id }}
132+ CODEBUILD_SOURCE_VERSION=${{ github.sha }}
133+ DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }}
134+ DOCKERHUB_ACCESS_TOKEN=${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
135+ DOCKER_REPO=891426818781.dkr.ecr.us-east-1.amazonaws.com/github-integration-test
136+ ARTIFACT_BUCKET=integration-test-buildartifacts
137+ AWS_REGION
138+ AWS_ACCESS_KEY_ID
139+ AWS_SECRET_ACCESS_KEY
140+ AWS_SESSION_TOKEN
141+ EOF
142+
143+ docker run \
144+ --rm \
145+ --privileged \
146+ --env-file .envfile \
147+ --volume /var/run/docker.sock:/var/run/docker.sock \
148+ --volume "$(pwd):/app" \
149+ --workdir /app \
150+ ${{ needs.build-image.outputs.image }} \
151+ /bin/sh -c "set -x; git config --global --add safe.directory /app && apppack-builder prebuild; apppack-builder build; apppack-builder postbuild"
152+ - uses : actions/setup-python@v4
153+ with :
154+ python-version : " 3.11"
155+ - name : Verify apppack.toml
156+ working-directory : ./apppack-demo-python
157+ run : |
158+ set -ex
159+ cat apppack.toml
160+ test "$(python -c 'import tomllib; print(tomllib.load(open("apppack.toml", "rb"))["services"]["web"]["command"])')" = "bash -c 'gunicorn --access-logfile - --bind 0.0.0.0:\$PORT --forwarded-allow-ips '\"'\"'*'\"'\"' app:app'"
161+
103162 integration-appjson :
104163 runs-on : ubuntu-latest
105164 needs : [test, build-image]
@@ -281,7 +340,14 @@ jobs:
281340 runs-on : ubuntu-latest
282341 # Only run this job if the current commit is tagged with a version
283342 if : startswith(github.ref, 'refs/tags/v')
284- needs : [test, build-image, integration, integration-docker, integration-appjson, integration-heroku20]
343+ needs :
344+ - test
345+ - build-image
346+ - integration
347+ - integration-docker
348+ - integration-appjson
349+ - integration-heroku20
350+ - integration-heroku24
285351 permissions :
286352 id-token : write
287353 contents : read
0 commit comments