Update .gitea/workflows/container.yml
Test Workflow run in Container / test (push) Successful in 8s

This commit is contained in:
2023-07-17 02:05:29 +02:00
parent b44f58e969
commit 1fab0f1ad2
+8 -4
View File
@@ -2,6 +2,7 @@ name: Test Workflow run in Container
on: push on: push
env: env:
# This Env Variable is initialized by Gitea Actions Workflow! (Not passed to the Docker Command initializing the container)
WORKFLOW_VAR: 123 WORKFLOW_VAR: 123
jobs: jobs:
@@ -10,11 +11,14 @@ jobs:
container: container:
image: archlinux:latest image: archlinux:latest
env: 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: steps:
- name: Check if in Arch Container... - name: Check if in Arch Container...
run: cat /etc/os-release run: cat /etc/os-release
- name: Print Gitea Workflow Variable - name: Print Gitea Workflow Variable
run: echo "$WORKFLOW_VAR" run: echo "WORKFLOW_VAR=$WORKFLOW_VAR"
- name: Print Gitea Workflow Variable - name: Print Docker Container Env Variable
run: echo "$CONTAINER_VAR" run: echo "CONTAINER_VAR=$CONTAINER_VAR"