Skip to content

Commit

Permalink
secure template
Browse files Browse the repository at this point in the history
  • Loading branch information
ericminio committed Apr 25, 2024
1 parent 4cf52b5 commit 70a1ea2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/template

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: template

on:
push:
branches:
- master

jobs:
test:
name: run tests
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v2
- name: update /etc/hosts
run: |
sudo echo "172.17.0.1 host.docker.internal" | sudo tee -a /etc/hosts
cat /etc/hosts
- name: build
run: |
cd template
docker-compose build
- name: test config
run: |
cd template
docker-compose run --rm nginx nginx -t
- name: start servers
run: |
cd template
docker-compose up -d
- name: run tests
run: |
cd template
../support/test.sh ./about

0 comments on commit 70a1ea2

Please sign in to comment.