Skip to content

Commit bd2208b

Browse files
authored
Create execute-commands.yml
1 parent 7ea8a57 commit bd2208b

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Apenas Executar comandos
2+
run-name: ${{ github.actor }} está estudando GitHub Actions
3+
4+
on:
5+
6+
workflow_dispatch:
7+
8+
jobs:
9+
10+
job-01:
11+
runs-on: gitea-ubuntu-latest
12+
steps:
13+
- name: Executar comandos
14+
run: |
15+
echo "======================================================"
16+
cat /etc/os-release
17+
echo "======================================================"
18+
which apt 2>/dev/null || echo "NOT apt"
19+
which dnf 2>/dev/null || echo "NOT dnf"
20+
which apk 2>/dev/null || echo "NOT apk"
21+
which docker 2>/dev/null || echo "NOT docker"
22+
which git 2>/dev/null || echo "NOT git"
23+
24+
job-02:
25+
needs: job-01
26+
runs-on: ubuntu-latest
27+
container: python:slim
28+
steps:
29+
- name: Executar commandos
30+
run: |
31+
echo "======================================================"
32+
cat /etc/os-release
33+
echo "======================================================"
34+
python --version
35+
36+
job-03:
37+
needs: job-02
38+
runs-on: ubuntu-latest
39+
container: jarbelix/samba4-addc:debian
40+
steps:
41+
- name: Executar commandos
42+
run: |
43+
echo "======================================================"
44+
cat /etc/os-release
45+
echo "======================================================"
46+
samba --version
47+
48+
job-04:
49+
needs: job-03
50+
runs-on: ubuntu-latest
51+
container: nginx
52+
steps:
53+
- name: Executar commandos
54+
run: |
55+
echo "======================================================"
56+
cat /etc/os-release
57+
echo "======================================================"
58+
nginx --version
59+
60+
job-05:
61+
needs: job-04
62+
runs-on: ubuntu-latest
63+
steps:
64+
- name: Executar commandos
65+
run: |
66+
echo "======================================================"
67+
docker images
68+
echo "======================================================"
69+
docker ps -a
70+
echo "======================================================"

0 commit comments

Comments
 (0)