File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run on Zinal
2+
3+ on :
4+ push :
5+ branches :
6+ - ' fc-*'
7+ - ' LdCacheHook'
8+
9+ jobs :
10+ build :
11+ if : github.actor == 'fcruzcscs'
12+ runs-on : zinal
13+ steps :
14+ - name : Setup temporary dir
15+ run : |
16+ TMP_DIR=$(mktemp -d)
17+ echo "TMP_DIR=$TMP_DIR" >> $GITHUB_ENV
18+ echo "Using temp directory: $TMP_DIR"
19+
20+ - name : Manually clone repo within tmp dir
21+ run : git clone --depth 1 --branch "${GITHUB_REF_NAME}" https://github.com/${GITHUB_REPOSITORY}.git
22+ working-directory : ${{ env.TMP_DIR }}
23+
24+ - name : List contents of TMP_DIR
25+ run : ls -la
26+ working-directory : ${{ env.TMP_DIR }}
27+
28+ - name : Run build inside Podman container
29+ run : |
30+ podman run --rm \
31+ -v "$PWD":"$PWD":Z \
32+ -v "$TMP_DIR":"$TMP_DIR":Z \
33+ -w "$PWD" \
34+ --env TMP_DIR="$TMP_DIR" \
35+ --env GITHUB_REF_NAME="$GITHUB_REF_NAME" \
36+ ghcr.io/sarus-suite/sarus-hooks/ci-runner:latest \
37+ bash -euxc '
38+ mkdir -p $TMP_DIR/dist
39+
40+ export VER=opensuse-15.5
41+
42+ '
43+ working-directory : ${{ env.TMP_DIR }}/parallax
44+
45+ - name : Install Bats locally
46+ run : |
47+ git clone --depth 1 https://github.com/bats-core/bats-core.git "$TMP_DIR/bats-core"
48+ "$TMP_DIR/bats-core/install.sh" "$TMP_DIR/bats"
49+ working-directory : ${{ env.TMP_DIR }}
50+
51+ - name : Testing podman run
52+ run : |
53+ export PODMAN_BINARY=$(which podman)
54+ $PODMAN_BINARY version
55+ working-directory : ${{ env.TMP_DIR}}
56+
You can’t perform that action at this time.
0 commit comments