-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (58 loc) · 1.79 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Building Pipeline Containers
on:
push:
branches:
'master'
jobs:
starting-notification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Intital notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_MESSAGE: 'Creating new rfam-family-pipeline image in docker hub'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true
create-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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/family-pipeline .
- name: docker push
run: docker push rfam/family-pipeline
finished-notification:
needs:
- create-docker-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Finished notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_MESSAGE: 'New rfam-family-pipeline image pushed to docker hub'
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
MSG_MINIMAL: true
singularity-conversion:
needs:
- create-docker-image
uses: rfam/rfam-family-pipeline/.github/workflows/singularity.yaml@master
secrets: inherit
finished-singularity:
needs:
- singularity-conversion
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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