Repository navigation
fix(certificate): editable certificate paths on the import form #135
This file contains hidden or 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: docker init-config tests | |
| on: | |
| push: | |
| paths: | |
| - 'resources/docker/init-config.sh' | |
| - 'resources/docker/nginx.run' | |
| - 'resources/docker/nginx-ui.conf' | |
| - 'resources/docker/nginx-ui.conf.known-hashes' | |
| - 'resources/docker/scripts/**' | |
| - 'resources/docker/tests/**' | |
| - 'internal/helper/docker.go' | |
| - 'internal/self_check/**' | |
| - 'Dockerfile' | |
| - 'demo.Dockerfile' | |
| - '.github/workflows/docker-init-config-test.yml' | |
| pull_request: | |
| paths: | |
| - 'resources/docker/init-config.sh' | |
| - 'resources/docker/nginx.run' | |
| - 'resources/docker/nginx-ui.conf' | |
| - 'resources/docker/nginx-ui.conf.known-hashes' | |
| - 'resources/docker/scripts/**' | |
| - 'resources/docker/tests/**' | |
| - 'internal/helper/docker.go' | |
| - 'internal/self_check/**' | |
| - 'Dockerfile' | |
| - 'demo.Dockerfile' | |
| - '.github/workflows/docker-init-config-test.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| hash-consistency: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Verify last known-hash equals current template | |
| run: | | |
| expected=$(sha256sum resources/docker/nginx-ui.conf | awk '{print $1}') | |
| latest=$(grep -vE '^[[:space:]]*(#|$)' resources/docker/nginx-ui.conf.known-hashes \ | |
| | awk '{print $1}' | tail -n1) | |
| if [ "$expected" != "$latest" ]; then | |
| echo "::error::nginx-ui.conf changed without updating known-hashes file." | |
| echo "Run: bash resources/docker/scripts/update-nginx-ui-conf-hash.sh" | |
| exit 1 | |
| fi | |
| bats: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - name: Install bats | |
| run: sudo apt-get update && sudo apt-get install -y bats | |
| - name: Run bats tests | |
| run: bats resources/docker/tests/ | |
| go-self-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: go.mod | |
| - name: Run bundled config self-check tests | |
| run: go test -tags=unembed ./internal/helper ./internal/self_check -count=1 |