Files
templates/.cirrus.yml
Barry McCormick 0317805c30 Testnginx (#10)
* nginx test 1

* nginx test 2

* nginx test 3

* nginx test 4

* nginx test 5

* nginx test 6

* nginx test 7

* nginx test 8

* nginx test 9

* nginx test 10

* nginx test 11

* nginx test 12

* nginx test 13

* nginx test 14

* nginx test 15

* nginx test 16

* nginx test 17

* nginx test 18

* nginx test 19

* nginx test 20

* nginx test 21

* nginx test 22

* nginx test 23

* nginx test 24

* nginx test 25

* nginx test 26

* nginx test 27

* nginx test 28

* rdr fixes

* start of haproxy test 1

* test 29

* test 30

* test 31

* nginx status

* added service check

* added service check 2

* added service check 3

* added service check 4

* added service check 5

* completed nginx check

---------

Co-authored-by: Barry McCormick <bmccormick@debianbeast.maildragon.com>
2023-10-12 20:23:47 -07:00

47 lines
1.3 KiB
YAML

# .cirrus.yml:
env:
CIRRUS_CLONE_DEPTH: 1
ARCH: amd64
task:
freebsd_instance:
image: freebsd-13-2-release-amd64
build_trigger:
- echo "BRANCH=$(GITHUB_REF)" >> $CIRRUS_ENV
show_build_trigger: echo $BRANCH
script:
- echo "branch is $BRANCH"
- pkg install -y git curl
- echo 'pf_enable="YES"' >> /etc/rc.conf
- git clone https://github.com/BastilleBSD/bastille.git
- cd bastille
- make install
- cd /usr/local/etc/bastille
- cp bastille.conf.sample bastille.conf
- bastille setup
- service pf start
- service pf status
- git clone https://github.com/BastilleBSD/templates.git
- bastille bootstrap 13.2-RELEASE
- bastille create testrun 13.2-RELEASE 10.17.89.66
- bastille list
- cd templates
- echo " branch is $BRANCH "
- git checkout $BRANCH
- git branch
- echo "GHSHA is $GHSHA"
- git diff --dirstat $BRANCH..main ./*
- git diff --dirstat $BRANCH..main ./* > diff.txt
- echo "*** diff.txt ***"
- cat diff.txt
- # Use sed to remove characters before the match pattern
- sed 's/.* //' diff.txt > changed.txt
- echo "*** changed.txt ***"
- cat changed.txt
- read -r CHDIR <"changed.txt"
- echo $CHDIR
- cd $CHDIR
- pwd
- chmod +x ./test.sh
- ./test.sh