Skip to content

Link to readme instead of folder #40

Link to readme instead of folder

Link to readme instead of folder #40

name: 'Build and Push WBI NWT App'
on:
push:
branches:
- main
jobs:
build-and-push-wbi-nwt:
name: Build WBI NWT Shiny App
if: "contains(github.event.head_commit.message, 'build wbi_nwt')"
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build and push'
uses: docker/build-push-action@v4
with:
context: ./03-apps/wbi_nwt
push: true
tags: ghcr.io/predictiveecology/wbi_shiny/shiny-wbi_nwt:v2
- name: 'Trigger update webhook'
run: |
response=$(curl "http://wbi.predictiveecology.org:9000/hooks/update?token=${{secrets.WEBHOOK_SECRET}}")
echo $response
(( $response == "Updating images" )) || { exit 1; }
build-and-push-wbi:
name: Build WBI Shiny App
if: "contains(github.event.head_commit.message, 'build wbi')"
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v3
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build and push'
uses: docker/build-push-action@v4
with:
context: ./03-apps/wbi
push: true
tags: ghcr.io/predictiveecology/wbi_shiny/shiny-wbi:v1
- name: 'Trigger update webhook'
run: |
response=$(curl "http://wbi.predictiveecology.org:9000/hooks/update?token=${{secrets.WEBHOOK_SECRET}}")
echo $response
[[ $response == "Updating images" ]] || { exit 1; }