Skip to content

Nginx Ngrok

Nginx Ngrok #61

Workflow file for this run

name: Nginx Ngrok
on:
push:
branches: [ master ]
paths:
- 'nginx-ngrok/**'
- '.github/workflows/nginx-ngrok.yaml'
pull_request:
paths:
- 'nginx-ngrok/**'
- '.github/workflows/nginx-ngrok.yaml'
schedule:
- cron: '0 0 1,15 * *'
workflow_dispatch:
jobs:
build:
name: latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the image
run: |
cd nginx-ngrok
docker build . --tag monsieurbiz/nginx-ngrok:latest
docker images
- name: Push the image
if: (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master'
run: |
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
docker push monsieurbiz/nginx-ngrok:latest