From 1fab0f1ad2f31f513ef43150ff9901b38cb54ccd Mon Sep 17 00:00:00 2001 From: Tom - Henry Coursow Date: Mon, 17 Jul 2023 02:05:29 +0200 Subject: [PATCH] Update .gitea/workflows/container.yml --- .gitea/workflows/container.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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