This repository has been archived on 2024-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
docker-run-action/.gitea/workflows/tests.yml

38 lines
858 B
YAML
Raw Normal View History

2023-08-16 11:20:10 +02:00
name: run tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
run-container:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: single-line options
2023-08-16 11:22:10 +02:00
uses: git.44net.ch/actions/docker-run-action@main
2023-08-16 11:20:10 +02:00
with:
image: debian:11-slim
volumes: /tmp/:/tmp/
options: -e TESTENV=${{ gitea.workspace }}
run: echo "test"
- name: multi-line options
2023-08-16 11:22:10 +02:00
uses: git.44net.ch/actions/docker-run-action@main
2023-08-16 11:20:10 +02:00
with:
image: debian:11-slim
volumes: |
/tmp/:/tmp/
README.md:/README.md
options: |
-e TESTENV=${{ gitea.workspace }}
-e TESTENV2=TESTENV2
run: |
/bin/sh -c
echo "test"