[Snyk] Security upgrade alpine from 3.18.3 to 3.18.6 #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Test MKDocs | |
on: | |
push: | |
branches: [issue/*, feature/*] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Docker image | |
run: | | |
export RELEASE=$(grep "MKDOCS_VERSION=" Dockerfile | sed 's|^.*=||g' |awk '{print $1}' | sed 's|"||g') | |
docker build . --file Dockerfile --tag polinux/mkdocs:${RELEASE} | |
- name: Test image | |
run: | | |
export RELEASE=$(grep "MKDOCS_VERSION=" Dockerfile | sed 's|^.*=||g' |awk '{print $1}' | sed 's|"||g') | |
docker run -d --cap-add NET_ADMIN -p 8000:8000 --name mkdocs polinux/mkdocs:${RELEASE} | |
sleep 10 | |
curl -sSLi http://127.0.0.1:8000 | grep '200 OK' | |
# Test custom port | |
docker run -d --cap-add NET_ADMIN -p 8001:9000 --name custom -e "DEV_ADDR=0.0.0.0:9000" polinux/mkdocs:${RELEASE} | |
sleep 10 | |
curl -sSLi http://127.0.0.1:8001 | grep '200 OK' |