File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 12
12
13
13
steps :
14
14
- uses : actions/checkout@v4
15
+ - name : Test content
16
+ run : ./test-content
15
17
- name : Generate configuration
16
18
run : ./test-generate 8080 http
17
19
- name : Startup container
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ STORAGE=$( mktemp)
4
+ cleanup (){
5
+ rm " $STORAGE "
6
+ }
7
+ trap cleanup EXIT
8
+
9
+ echo " Creating container..."
10
+ docker create --name=" tmp_$$ " " ${TEST_CONTAINER:- weblate/ weblate: edge} "
11
+ echo " Listing content container..."
12
+ docker export tmp_$$ | tar t > " $STORAGE "
13
+ echo " Removing container..."
14
+ docker rm tmp_$$
15
+ echo " Checking content..."
16
+
17
+ # /app/data is not checked because it contains stub for customization
18
+ if grep -E ' ^(app/cache|tmp|run)/.+' " $STORAGE " ; then
19
+ echo " Volumes contain files!"
20
+ exit 1
21
+ fi
22
+
23
+ echo " $STORAGE "
You can’t perform that action at this time.
0 commit comments