Comments (2)
Works awesome. You might want to document the hidden parameter 'options' :)
Using variables inside the 'with' parameters is not possible with your action. If anyone needs to do this: Have a look at my fork, which evaluates variables inside the image and options parameter: paresy@489b2c4
You can still use ${{...}} expressions though which are evaluated directly by GitHub Actions.
Hint: Because of how Docker in Docker works all mounts are made directly on the "host". Not inside the actions docker container!
- name: Run in dart
uses: addnab/docker-run-action@v1
with:
image: google/dart:2.8
options: -v ${{github.workspace}}:/work
run: |
dart --version
cd /work
pub get
pub global activate webdev
$HOME/.pub-cache/bin/webdev build --output=web:build
from docker-run-action.
Thanks for the input. I've updated the docs with your suggestion.
From the link you that you've tagged, I understand how options: -v $GITHUB_WORKSPACE:/work
would work but can't get my head around how eval
is able to parse ${{github.workspace}}
?
from docker-run-action.
Related Issues (20)
- How to pass or use variables which are external to a running container? HOT 3
- Problem passing github environment variables HOT 2
- $GITHUB_ENV: ambiguous redirect HOT 2
- Passing args to ENTRYPOINT script
- How to specify volume mount? HOT 4
- Options passed with docker-run-action returns error whereas checkout action works as expected
- caching the Docker image HOT 3
- Can't use with AWS ECR
- Newline replacement with semicolon not always safe
- Heroku docker run
- Can't use with containerd
- Using $GITHUB_OUTPUT HOT 1
- support background containers HOT 1
- FAILS on docker image containing forward slashes
- Mounting ${{ github.workspace }} HOT 2
- Possible to run image from local tar?
- Trying to access Postgres service from docker image HOT 1
- Cannot connect to the Docker daemon HOT 2
- Specify --rm with `docker run` to avoid cleanup issues with Gitea actions HOT 1
- Warning: Docker network rm failed with exit code 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 docker-run-action.