Skip to content

Instantly share code, notes, and snippets.

@apogiatzis
Last active October 28, 2021 15:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apogiatzis/0868c10e527da7923e4a639422db7e84 to your computer and use it in GitHub Desktop.
Save apogiatzis/0868c10e527da7923e4a639422db7e84 to your computer and use it in GitHub Desktop.
Github Workflow for Medium post
name: Challenge Deployment
on: push
jobs:
cancel:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ github.token }}
deploy:
name: Deploy challenge
runs-on: ubuntu-latest
needs: cancel
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run container
run: docker-compose up -d
- uses: apogiatzis/ngrok-tunneling-action@v0.1.4
with:
timeout: 1h
port: 4000
ngrok_authtoken: ${{ secrets.NGROK_AUTHTOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment