✨ Add netcat to backend image (used for health check) #41
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: Docker Build | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create config file | |
env: | |
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
run: | | |
echo $FIREBASE_CONFIG > ./src/firebaseConfig.json | |
- name: Clone honeypot | |
run: | | |
cd .. | |
git clone https://github.com/Honeybrain/Honeypot | |
cd Honeypot | |
- name: Build protos | |
run: | | |
cd ../Honeypot | |
chmod 777 ./scripts/make_backend_protos.sh | |
./scripts/make_backend_protos.sh ./protos ../Backend | |
- name: Build Backend Docker | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
run: | | |
docker build -t $DOCKER_USER/hb_dashboard_back . | |
- name: Build Envoy Docker | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
run: | | |
docker build -t $DOCKER_USER/hb_dashboard_envoy -f Dockerfile.envoy . | |
- name: Push the Dockers | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
run: | | |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
docker push $DOCKER_USER/hb_dashboard_back | |
docker push $DOCKER_USER/hb_dashboard_envoy |