From d125648a68ee1e5caebc64d7fa45f94c2400ae64 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Wed, 17 Feb 2021 08:52:31 -0600 Subject: [PATCH] feat: directly use base container in action Instead of having a `Dockerfile` that extends the base container, directly use the base container in the action definition. Signed-off-by: Matthew Weier O'Phinney --- Dockerfile | 4 ---- README.md | 5 +++++ action.yml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f6b42a49..00000000 --- a/Dockerfile +++ /dev/null @@ -1,4 +0,0 @@ -FROM ghcr.io/laminas/laminas-ci-matrix-container:1 - -LABEL "com.github.actions.icon"="share-2" -LABEL "com.github.actions.color"="blue" diff --git a/README.md b/README.md index 1d08d274..044206c6 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,11 @@ jobs: Generally, you will use this as a dependency of a job that uses [laminas/laminas-continuous-integration-action](https://github.com/laminas/laminas-continuous-integration-action), as demonstrated in the above configuration. +> ### DO NOT use actions/checkout +> +> **DO NOT** use the `actions/checkout` action in a step prior to using this action. +> Doing so will lead to errors, as this action performs git checkouts into the WORKDIR, and a non-empty WORKDIR causes that operation to fail. + ## Outputs It spits out a single output, "matrix", which is a JSON string in the following format: diff --git a/action.yml b/action.yml index 0d661108..54199c7a 100644 --- a/action.yml +++ b/action.yml @@ -17,4 +17,4 @@ outputs: runs: using: 'docker' - image: 'Dockerfile' + image: 'docker://ghcr.io/laminas/laminas-ci-matrix-container:1'