-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.32 KB
/
test-pull-and-run-alpine.yml
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
47
48
name: Test pull and run Alpine
# Controls when the action will run.
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
pull-and-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run apt-get update
run: |
sudo apt-get update
- name: Install dependencies
run: |
sudo apt-get -y install aria2 curl jq
- name: Test pulling Alpine container
run: |
echo "Starting pulling container..."
./dockerhub2oci --repo gliderlabs --image alpine --tag latest
echo "Result:"
ls -la gliderlabs/alpine/latest
- name: Install containerd due to Ubuntu Jammy messy dependencies
run: |
sudo apt-get -y install containerd
- name: Install Charliecloud for testing
run: |
sudo apt-get -y install charliecloud
- name: Test alpine container with Charliecloud
run: |
echo "Creating empty resolv.conf in container..."
touch gliderlabs/alpine/latest/etc/resolv.conf
echo "Running ls -la in container..."
ch-run -v gliderlabs/alpine/latest -- ls -la
echo "Checkout /etc/alpine-release in container..."
ch-run -v gliderlabs/alpine/latest -- cat /etc/alpine-release