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: test: runs-on: ubuntu-latest container: image: archlinux:latest ports: # Opens port 7777 on the host forwards it to the container port 7777 - 7777:7777 env: # 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=$WORKFLOW_VAR" - name: Print Docker Container Env Variable run: echo "CONTAINER_VAR=$CONTAINER_VAR"