Not arithmetic build wbi #38
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: '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; } | |