This commit is contained in:
parent
69596e1794
commit
6e13037360
1 changed files with 10 additions and 5 deletions
|
|
@ -3,17 +3,22 @@ jobs:
|
|||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: 'distro=$(. /etc/os-release && echo $PRETTY_NAME) echo "Hello from inside $distro"'
|
||||
- name: Host distro
|
||||
run: |
|
||||
distro=$(. /etc/os-release && echo "$PRETTY_NAME")
|
||||
echo "Hello from host: $distro"
|
||||
- name: Run something in Alpine
|
||||
uses: docker://alpine:3.20
|
||||
with:
|
||||
args: |
|
||||
export distro=$(. /etc/os-release && echo $PRETTY_NAME)
|
||||
args: -lc '
|
||||
distro=$(. /etc/os-release && echo $PRETTY_NAME)
|
||||
echo "Hello from inside $distro"
|
||||
'
|
||||
- name: Run something in ArchBtw
|
||||
uses: docker://archlinux:base
|
||||
with:
|
||||
args: |
|
||||
export distro=$(. /etc/os-release && echo $PRETTY_NAME)
|
||||
args: -lc '
|
||||
distro=$(. /etc/os-release && echo $PRETTY_NAME)
|
||||
echo "Hello from inside $distro"
|
||||
'
|
||||
- run: echo "Back on the host runner again"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue