2024-12-09 22:45:59 +01:00
2024-12-09 22:14:11 +01:00
2024-12-09 22:45:59 +01:00

get-image-env-var

Github/Gitea action used to get a docker image environment variable

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.

Description
No description provided
Readme 29 KiB