Last active
October 28, 2021 15:52
-
-
Save apogiatzis/0868c10e527da7923e4a639422db7e84 to your computer and use it in GitHub Desktop.
Github Workflow for Medium post
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: Challenge Deployment | |
on: push | |
jobs: | |
cancel: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
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/[email protected] | |
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