Skip to content

Commit 79e51a2

Browse files
committed
Experimenting with docker
1 parent c365cdf commit 79e51a2

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/sanity-test.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,18 @@ jobs:
192192
- name: Checkout Source
193193
uses: actions/checkout@v4
194194

195-
- name: Install builder
196-
uses: actions/download-artifact@v4
195+
- name: Get release tag
196+
uses: ./.github/actions/release-tag
197+
id: tag
197198
with:
198-
name: builder
199-
path: .
199+
output: tag
200200

201201
- name: Build aws-c-common
202-
run: python3 builder.pyz build --project aws-c-common --compiler=${{ matrix.compiler }} run_tests=false
202+
run: |
203+
aws ecr get-login-password --region us-east-1 | docker login ${{ secrets.AWS_ECR_REPO }} -u AWS --password-stdin
204+
export DOCKER_IMAGE=${{ secrets.AWS_ECR_REPO }}/aws-crt-ubuntu-20-x64:${{ steps.tag.outputs.release_tag }}
205+
docker pull $DOCKER_IMAGE
206+
docker run --env GITHUB_REF --entrypoint build --project aws-c-common --compiler=${{ matrix.compiler }} run_tests=false
203207
204208
# Make sure linux compilers + stdlibs are installing properly
205209
std-compat:

0 commit comments

Comments
 (0)