-
Notifications
You must be signed in to change notification settings - Fork 0
167 lines (145 loc) · 5.72 KB
/
Release.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
name: Release
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get git version
run: echo "GIT_VERSION=$(git describe --tags)" >> $GITHUB_ENV
- name: Echo version
run: echo $GIT_VERSION
- name: Echo version again
run: echo ${{env.GIT_VERSION}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: set up docker buildx
uses: docker/setup-buildx-action@v3
- name: log into GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta for SEAMM
id: meta-seamm
uses: docker/metadata-action@v5
with:
images: ghcr.io/molssi-seamm/seamm
tags:
type=semver,pattern={{version}},value=${{ env.GIT_VERSION }}
annotations: |
org.opencontainers.image.description=SEAMM Graphical User Interface
org.opencontainers.image.title=SEAMM
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
labels: |
org.opencontainers.image.description=SEAMM Graphical User Interface
org.opencontainers.image.title=SEAMM
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
- name: Build and push SEAMM
uses: docker/build-push-action@v5
with:
context: ./environments
file: ./environments/SEAMM_Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta-seamm.outputs.tags }}
annotations: ${{ steps.meta-seamm.outputs.annotations }}
labels: ${{ steps.meta-seamm.outputs.labels }}
- name: Docker meta for RunFlowchart
id: meta-runflowchart
uses: docker/metadata-action@v5
with:
images: ghcr.io/molssi-seamm/run_flowchart
tags:
type=semver,pattern={{version}},value=${{ env.GIT_VERSION }}
annotations: |
org.opencontainers.image.description=Container to run SEAMM flowcharts
org.opencontainers.image.title=RunFlowchart
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
labels: |
org.opencontainers.image.description=Container to run SEAMM flowcharts
org.opencontainers.image.title=RunFlowchart
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
- name: Build and push RunFlowchart
uses: docker/build-push-action@v5
with:
context: ./environments
file: ./environments/RunFlowchart_Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta-runflowchart.outputs.tags }}
annotations: ${{ steps.meta-runflowchart.outputs.annotations }}
labels: ${{ steps.meta-runflowchart.outputs.labels }}
- name: Docker meta for JobServer
id: meta-jobserver
uses: docker/metadata-action@v5
with:
images: ghcr.io/molssi-seamm/jobserver
tags:
type=semver,pattern={{version}},value=${{ env.GIT_VERSION }}
annotations: |
org.opencontainers.image.description=The JobServer for SEAMM
org.opencontainers.image.title=JobServer
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
labels: |
org.opencontainers.image.description=The JobServer for SEAMM
org.opencontainers.image.title=JobServer
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
- name: Build and push JobServer
uses: docker/build-push-action@v5
with:
context: ./environments
file: ./environments/JobServer_Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta-jobserver.outputs.tags }}
annotations: ${{ steps.meta-jobserver.outputs.annotations }}
labels: ${{ steps.meta-jobserver.outputs.labels }}
- name: Docker meta for Dashboard
id: meta-dashboard
uses: docker/metadata-action@v5
with:
images: ghcr.io/molssi-seamm/dashboard
tags:
type=semver,pattern={{version}},value=${{ env.GIT_VERSION }}
annotations: |
org.opencontainers.image.description=The Dashboard for SEAMM
org.opencontainers.image.title=Dashboard
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
labels: |
org.opencontainers.image.description=The Dashboard for SEAMM
org.opencontainers.image.title=Dashboard
org.opencontainers.image.authors=Paul Saxe <psaxe@vt.edu>
- name: Build and push Dashboard
uses: docker/build-push-action@v5
with:
context: ./environments
file: ./environments/Dashboard_Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta-dashboard.outputs.tags }}
annotations: ${{ steps.meta-dashboard.outputs.annotations }}
labels: ${{ steps.meta-dashboard.outputs.labels }}
- name: Get message
run: |
{
echo 'SLACK_MESSAGE<<EOF'
git log -1 | sed 1,4d
echo EOF
} >> "$GITHUB_ENV"
- name: Post to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1.25.0
with:
channel-id: 'github'
slack-message: ${{ env.SLACK_MESSAGE }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}