Skip to content

Add a comment

Add a comment #2

Workflow file for this run

# Thid workflow will build and push the import pipeline container.
# the plan later will be to include unit tests as well
name: Building Pipeline Containers
on:
push:
branches: ["master", "rework-design"]
paths: ["pyproject.toml", "poetry.lock", "Dockerfile"]
workflow_dispatch:
jobs:
starting-notification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Intital notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_MESSAGE: "Creating new Rfam 3D pipeline image in docker hub"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true
create-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: docker login
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: docker build
run: docker build -f Dockerfile -t rfam/rfam-3d-seed-alignments:latest .
- name: docker push
run: docker push rfam/rfam-3d-seed-alignments:latest
finished-notification:
needs:
- create-docker-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Finished notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_MESSAGE: "New pipeline image pushed to docker hub"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true
singularity-conversion:
needs:
- create-docker-image
uses: rfam/rfam-3d-seed-alignments/.github/workflows/singularity.yaml@rework-design
secrets: inherit
finished-singularity:
needs:
- singularity-conversion
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Finished notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_MESSAGE: "New singularity image pushed to ghcr"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true