Comments (6)
I have worked around this issue by overwriting GITHUB_WORKFLOW env var: apache/avro@c635b9a
@martin-g this worked! I am using a matrix, so I had to use matrix values when setting GITHUB_WORKFLOW
. Thanks for the tip!
giggio/node-chromedriver@8255bb5
from run-on-arch-action.
On the contrary I would like to use the same cache for different workflows. Instead of overwriting GITHUB_WORKFLOW
I would want to allow specifying the full container name:
diff --git a/src/run-on-arch.js b/src/run-on-arch.js
index aeca1b2..ab4362c 100644
--- a/src/run-on-arch.js
+++ b/src/run-on-arch.js
@@ -100,7 +100,7 @@ async function main() {
}
// Generate a container name slug unique to this workflow
- const containerName = slug([
+ const containerName = slug(core.getInput('containerName') || [
'run-on-arch', env.GITHUB_REPOSITORY, env.GITHUB_WORKFLOW,
arch, distro,
].join('-'));
That way more complex usecases could always specify the exact name they want to use and less complex ones can use the default. This solution should go well with #100 and allow a lot more flexibility.
from run-on-arch-action.
Example here: https://github.com/gotson/sqlite-jdbc/blob/0396dd33095d2045adef229a4530240d2f1f8a4f/.github/workflows/test.yml#L76
from run-on-arch-action.
I'm having the same problem. It does not fail but the cache is invalidated and rebuilt because of different node versions coming from the matrix.
Example: https://github.com/giggio/node-chromedriver/runs/5439981596?check_suite_focus=true
from run-on-arch-action.
I experience the same problem: https://github.com/apache/avro/blob/a6c82ac6f4d316e769059adab39a9b39b5ea9f8c/.github/workflows/test-arm64.yml
My workflow has several jobs which run the action in their steps. Since all jobs share the same Docker image they invalidate the image for each other.
from run-on-arch-action.
I have worked around this issue by overwriting GITHUB_WORKFLOW env var: apache/avro@c635b9a
from run-on-arch-action.
Related Issues (20)
- Using Actions HOT 4
- Small mistake HOT 2
- How to use a base_image with multiple-platforms for aarch64? HOT 5
- The process '/home/runner/work/_actions/uraimo/run-on-arch-action/v2/src/run-on-arch.sh' failed HOT 3
- feature request: Firecracker VM support HOT 1
- can't use cargo in this action HOT 3
- nodejs cef build is failed HOT 1
- /root/run-on-arch-install.sh: not found HOT 5
- Multiple steps in a job HOT 7
- Support for actions steps instead of just shell commands HOT 1
- Error while setting up Go
- Failure to find and start dockers HOT 1
- The requested image's platform does not match the detected host platform HOT 1
- Need pinned Alpine Linux versions, e.g., v3.17 HOT 2
- not enough free disk space? HOT 4
- githubToken is required HOT 1
- Tag error for version 2.5.1 =>v.2.5.1 HOT 1
- Container always rebuilt HOT 2
- How can I copy files to host?
- Mounted Volume only gets updated after the `run` step completed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-on-arch-action.