diff --git a/.gitea/workflows/container.yml b/.gitea/workflows/container.yml index 0f2e50d..755f65d 100644 --- a/.gitea/workflows/container.yml +++ b/.gitea/workflows/container.yml @@ -2,6 +2,7 @@ name: Test Workflow run in Container on: push env: + # This Env Variable is initialized by Gitea Actions Workflow! (Not passed to the Docker Command initializing the container) WORKFLOW_VAR: 123 jobs: @@ -10,11 +11,14 @@ jobs: container: image: archlinux:latest env: - CONTAINER_VAR: 456 + # These env Variables are DOCKER CONTAINER env variables. + # So these can be used to configure the docker image above accordingly to the image documentation + # Using Gitea Env Variables for Docker Container Config would not work... + CONTAINER_VAR: 456 # This Env Variable is passed to the docker container steps: - name: Check if in Arch Container... run: cat /etc/os-release - name: Print Gitea Workflow Variable - run: echo "$WORKFLOW_VAR" - - name: Print Gitea Workflow Variable - run: echo "$CONTAINER_VAR" \ No newline at end of file + run: echo "WORKFLOW_VAR=$WORKFLOW_VAR" + - name: Print Docker Container Env Variable + run: echo "CONTAINER_VAR=$CONTAINER_VAR" \ No newline at end of file