Files
actions-containers/.gitea/workflows/container.yml
T
tom.coursow 1fab0f1ad2
Test Workflow run in Container / test (push) Successful in 8s
Update .gitea/workflows/container.yml
2023-07-17 02:05:29 +02:00

24 lines
1006 B
YAML

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
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"