From 04c49db47cc1aeb1123e2262918003fbb996d0a7 Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Sat, 16 Sep 2023 09:38:40 -0400 Subject: [PATCH] Update ponyc image location to ghcr.io (#132) --- .github/workflows/cargo-check.yaml | 2 +- .github/workflows/docker-image-builds.yml | 16 ++++++++++++++++ docker/Dockerfile | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/docker-image-builds.yml diff --git a/.github/workflows/cargo-check.yaml b/.github/workflows/cargo-check.yaml index 87f0acb..c46c00e 100644 --- a/.github/workflows/cargo-check.yaml +++ b/.github/workflows/cargo-check.yaml @@ -1,4 +1,4 @@ -name: cargo checks +name: Cargo checks on: pull_request: diff --git a/.github/workflows/docker-image-builds.yml b/.github/workflows/docker-image-builds.yml new file mode 100644 index 0000000..5aa42e1 --- /dev/null +++ b/.github/workflows/docker-image-builds.yml @@ -0,0 +1,16 @@ +name: Docker image builds + +on: pull_request + +concurrency: + group: pr-${{ github.ref }} + cancel-in-progress: true + +jobs: + validate-docker-image-builds: + name: Validate Docker image builds + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Docker build + run: "docker build --pull docker/." diff --git a/docker/Dockerfile b/docker/Dockerfile index 47a4eda..d12a2a9 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM ponylang/ponyc:release-alpine +FROM ghcr.io/ponylang/ponyc:release-alpine COPY bin/compile.sh bin/evaluate.sh /usr/local/bin/ ENV CC=gcc