This commit is contained in:
2024-12-09 22:45:54 +01:00
parent eda1d3bad6
commit 383c03824f

22
README.md Normal file
View 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.