Skip to content

Commit

Permalink
Merge pull request #98 from bioinfodlsu/input
Browse files Browse the repository at this point in the history
Disable button if computation is ongoing + Revise the code for clearing dcc Store data
  • Loading branch information
memgonzales authored Sep 1, 2023
2 parents 14c1289 + 553f07e commit a8f22bd
Show file tree
Hide file tree
Showing 90 changed files with 8,408 additions and 8,375 deletions.
404 changes: 202 additions & 202 deletions .dockerignore

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Platform**
- OS (Please indicate the version as well): [e.g., Windows 10, Ubuntu Jammy Jellyfish]
- Browser: [e.g., Chrome, Safari]
- Browser version: [e.g., 114.0.5735.199. If unspecified, the latest browser version will be assumed]

**Additional context**
Add any other context about the problem here.
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Platform**
- OS (Please indicate the version as well): [e.g., Windows 10, Ubuntu Jammy Jellyfish]
- Browser: [e.g., Chrome, Safari]
- Browser version: [e.g., 114.0.5735.199. If unspecified, the latest browser version will be assumed]

**Additional context**
Add any other context about the problem here.
40 changes: 20 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 8 additions & 8 deletions .github/workflows/check-for-syntax-errors.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on: [push, pull_request]
name: Check for syntax errors
jobs:
check-for-syntax-errors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cclauss/Find-Python-syntax-errors-action@master
on: [push, pull_request]
name: Check for syntax errors
jobs:
check-for-syntax-errors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cclauss/Find-Python-syntax-errors-action@master
60 changes: 30 additions & 30 deletions .github/workflows/delete-package-versions.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Delete package versions

on:
workflow_run:
workflows: [Create and publish a Docker image]
types: [completed]
branches: [main]

jobs:
delete-versions:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- uses: actions/delete-package-versions@v4
with:
package-name: 'rice-pilaf/app'
package-type: 'container'
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v4
with:
package-name: 'rice-pilaf/workflow'
package-type: 'container'
min-versions-to-keep: 1

on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'
name: Delete package versions

on:
workflow_run:
workflows: [Create and publish a Docker image]
types: [completed]
branches: [main]

jobs:
delete-versions:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- uses: actions/delete-package-versions@v4
with:
package-name: 'rice-pilaf/app'
package-type: 'container'
min-versions-to-keep: 1
- uses: actions/delete-package-versions@v4
with:
package-name: 'rice-pilaf/workflow'
package-type: 'container'
min-versions-to-keep: 1

on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'
134 changes: 67 additions & 67 deletions .github/workflows/dockerize-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
name: Create and publish a Docker image

on:
workflow_run:
workflows: [Check for syntax errors]
types: [completed]
branches: [main]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
fail-fast: false
matrix: # Cannot use env variables inside matrix
include:
- dockerfile: Dockerfile-app # Change to Dockerfile of app
image: ghcr.io/bioinfodlsu/rice-pilaf/app
- dockerfile: Dockerfile-workflow # Change to Dockerfile of workflow
image: ghcr.io/bioinfodlsu/rice-pilaf/workflow
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
cache-from: type=gha
cache-to: type=gha, mode=max
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'
name: Create and publish a Docker image

on:
workflow_run:
workflows: [Check for syntax errors]
types: [completed]
branches: [main]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
fail-fast: false
matrix: # Cannot use env variables inside matrix
include:
- dockerfile: Dockerfile-app # Change to Dockerfile of app
image: ghcr.io/bioinfodlsu/rice-pilaf/app
- dockerfile: Dockerfile-workflow # Change to Dockerfile of workflow
image: ghcr.io/bioinfodlsu/rice-pilaf/workflow
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
cache-from: type=gha
cache-to: type=gha, mode=max
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'
40 changes: 20 additions & 20 deletions .github/workflows/mirror-main-to-demo.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: Mirror main to demo branch

on:
workflow_run:
workflows: [Check for syntax errors]
types: [completed]
branches: [main]

jobs:
mirror_job:
runs-on: ubuntu-latest
name: Mirror main branch to demo branch
steps:
- name: Mirror action step
id: mirror
uses: google/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: 'main'
dest: 'demo'
name: Mirror main to demo branch

on:
workflow_run:
workflows: [Check for syntax errors]
types: [completed]
branches: [main]

jobs:
mirror_job:
runs-on: ubuntu-latest
name: Mirror main branch to demo branch
steps:
- name: Mirror action step
id: mirror
uses: google/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
source: 'main'
dest: 'demo'
Loading

0 comments on commit a8f22bd

Please sign in to comment.