readme
This commit is contained in:
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# get-image-env-var
|
||||
Github/Gitea action used to get a docker image environment variable
|
||||
```yml
|
||||
name: echo env var
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
get-env:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: get env var
|
||||
id: getenv
|
||||
uses: https://gitea.ar2000.me/ar2000/get-image-env-var@v2
|
||||
with:
|
||||
name: NEXTCLOUD_VERSION
|
||||
image: nextcloud:latest
|
||||
- name: echo
|
||||
run: echo ${{steps.getenv.outputs.value}}
|
||||
```
|
||||
If you get a docker not found error make sure you are using the `catthehacker/ubuntu:act-latest` image as your job's container.
|
Reference in New Issue
Block a user