push
This commit is contained in:
parent
8f8c1f7be6
commit
87bc863c6a
3 changed files with 33 additions and 2 deletions
25
README.md
25
README.md
|
@ -1 +1,26 @@
|
||||||
# based-alpine
|
# based-alpine
|
||||||
|
|
||||||
|
This image is based on `node:alpine` with the following additional packages
|
||||||
|
available:
|
||||||
|
|
||||||
|
- `bash`
|
||||||
|
- `curl`
|
||||||
|
- `git`
|
||||||
|
- `coreutils`
|
||||||
|
- `uv`
|
||||||
|
|
||||||
|
These are the dependencies I install most commonly in workflows -- so it made
|
||||||
|
sense for me to create an image containing them. I use it to make creating new
|
||||||
|
Forgejo actions simpler. On my instance [git.ficd.sh](https://git.ficd.sh),
|
||||||
|
where I've configured an additional label in the runner, I only need to add the
|
||||||
|
following:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
runs-on: based-alpine
|
||||||
|
```
|
||||||
|
|
||||||
|
To run it yourself:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
docker run --rm -it git.ficd.sh/ficd/based-alpine:latest bash
|
||||||
|
```
|
||||||
|
|
10
justfile
10
justfile
|
@ -2,10 +2,16 @@ name := 'git.ficd.sh/ficd/based-alpine'
|
||||||
|
|
||||||
# build the image
|
# build the image
|
||||||
build arg="latest":
|
build arg="latest":
|
||||||
|
#!/bin/sh
|
||||||
|
cd {{arg}}
|
||||||
docker build -t {{name}}:{{arg}} .
|
docker build -t {{name}}:{{arg}} .
|
||||||
# push the image
|
# push the image
|
||||||
push arg="latest":
|
push arg="latest":
|
||||||
|
#!/bin/sh
|
||||||
|
cd {{arg}}
|
||||||
docker push {{name}}:{{arg}}
|
docker push {{name}}:{{arg}}
|
||||||
# run cmd in image
|
# run cmd in image
|
||||||
run arg="sh":
|
run arg="latest":
|
||||||
docker run --rm -it {{name}} {{arg}}
|
#!/bin/sh
|
||||||
|
cd {{arg}}
|
||||||
|
docker run --rm -it {{name}} bash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue