From b6ccd51b83bd313076beffcec480796656769873 Mon Sep 17 00:00:00 2001 From: Kevin Buchholz Date: Tue, 11 Oct 2022 09:35:41 +0200 Subject: [PATCH 1/5] split into multiple stages for better debugging --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a170630..15141d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,10 @@ ENV MIX_HOME=/opt/mix \ RUN mkdir $APP_HOME WORKDIR $APP_HOME -RUN apk --no-cache --update-cache --available upgrade \ - && apk add --no-cache --update-cache bash ca-certificates libstdc++ build-base git inotify-tools nodejs npm yarn \ - && mix do local.hex --force, local.rebar --force \ - && update-ca-certificates --fresh +RUN apk --no-cache --update-cache --available upgrade +RUN apk add --no-cache --update-cache bash ca-certificates libstdc++ build-base git inotify-tools nodejs npm yarn +RUN mix do local.hex --force, local.rebar --force +RUN update-ca-certificates --fresh SHELL ["/bin/bash", "-c"] From b3c2aca4efa2ad4ed5557c5328cb74b4246c3cc3 Mon Sep 17 00:00:00 2001 From: Kevin Buchholz Date: Tue, 11 Oct 2022 09:59:17 +0200 Subject: [PATCH 2/5] use dev workflow in pr testing --- .github/workflows/TestPRs.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/TestPRs.yml b/.github/workflows/TestPRs.yml index e2bb24f..7e71287 100644 --- a/.github/workflows/TestPRs.yml +++ b/.github/workflows/TestPRs.yml @@ -11,5 +11,18 @@ jobs: name: Checkout uses: actions/checkout@v3 - - name: Run tests - run: docker-compose -f docker-compose.test.yml run test + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Build and push builder + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: false + target: builder + tags: | + sourceboat/docker-phoenix:test From 6270b50e25a5adbcb9ec99084488dfb53736f24c Mon Sep 17 00:00:00 2001 From: Kevin Buchholz Date: Thu, 13 Oct 2022 09:48:48 +0200 Subject: [PATCH 3/5] use action v2.1 --- .github/workflows/TestPRs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/TestPRs.yml b/.github/workflows/TestPRs.yml index 7e71287..a89fa14 100644 --- a/.github/workflows/TestPRs.yml +++ b/.github/workflows/TestPRs.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v2.1 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 From b02356fdf4992a5f6418c4fcbcb30a88b743a2ca Mon Sep 17 00:00:00 2001 From: Kevin Buchholz Date: Thu, 13 Oct 2022 09:50:57 +0200 Subject: [PATCH 4/5] revert --- .github/workflows/TestPRs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/TestPRs.yml b/.github/workflows/TestPRs.yml index a89fa14..7e71287 100644 --- a/.github/workflows/TestPRs.yml +++ b/.github/workflows/TestPRs.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v2.1 + uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 From 87206b0cd9fa11ad40f363acd957c698c2926db7 Mon Sep 17 00:00:00 2001 From: Kevin Buchholz Date: Thu, 13 Oct 2022 09:54:08 +0200 Subject: [PATCH 5/5] try v1 of qemu action --- .github/workflows/TestPRs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/TestPRs.yml b/.github/workflows/TestPRs.yml index 7e71287..5172590 100644 --- a/.github/workflows/TestPRs.yml +++ b/.github/workflows/TestPRs.yml @@ -12,7 +12,7 @@ jobs: uses: actions/checkout@v3 - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2