-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.46 KB
/
scientific-bash-workflow.yml
File metadata and controls
46 lines (41 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "scientificlinux CI workflow"
on:
push:
branches: [ main ]
schedule:
- cron: '0 0 1 * *' ##execution of a task in the first minute of the month
jobs:
ubuntu-latest-job:
name: "docker scientificlinux ubuntu latest"
runs-on: ubuntu-latest
env:
distribution: "scientificlinux" # https://hub.docker.com/_/sl
version: "latest"
name: "scientificlinux/base"
dockerfilename: "Dockerfile.scientific"
steps:
- uses: actions/checkout@v2
- name: "os fingerprinting"
run: |
hostnamectl status
lsb_release -a
lsb_release -d
cat /etc/lsb-release
cat /etc/issue
cat /etc/os-release
sudo apt-get install -y neofetch && neofetch
systemd-analyze
- name: "docker build custom scientificlinux base"
run: |
# destroyed afterwards (use --rm )
# all subsequent Dockerfile commands generate new images and the cache is not used
sudo docker build --no-cache --rm -t ${name}/${version} . --file dockerfiles/${dockerfilename}
docker image ls
docker container ls
docker image history ${name}/${version}
docker system df -v
docker image inspect ${name}/${version}
- name: "run scientificlinux"
run: |
docker run --name scifi-7 scientificlinux/sl:7 cat /etc/redhat-release
docker run --name scifi-6 scientificlinux/sl:6 cat /etc/redhat-release