-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (50 loc) · 1.68 KB
/
prod-envs-docker.yml
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
---
# deployment of qcarchive prod environments for docker deployments
name: Deployment - QCArchive Prod Docker Environments
on:
# run once prod env deployments are in place
workflow_run:
workflows: ["Deployment - QCArchive Prod Environments"]
branches: [master]
types:
- completed
workflow_dispatch:
jobs:
build-deploy-docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env-name:
#- qcarchive-worker-openff-ani
- qcarchive-worker-openff-openmm
- qcarchive-worker-openff-psi4
- qcarchive-worker-openff-xtb
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
- name: ensure we only have one instance running
uses: softprops/turnstyle@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_DANGERBOT_TOKEN_LIMITED }}
with:
abort-after-seconds: 60
- name: Inject environment name into Dockerfile
shell: bash
env:
ENV_NAME: ${{ matrix.env-name }}
BUILD_DIR: ./devtools/docker/qcarchive-worker-openff
run: |
mkdir ${BUILD_DIR}/tmp/
envsubst < ${BUILD_DIR}/Dockerfile > ${BUILD_DIR}/tmp/Dockerfile
cat ${BUILD_DIR}/tmp/Dockerfile
- name: Build and push Docker images
uses: docker/build-push-action@v1
with:
path: ./devtools/docker/qcarchive-worker-openff/tmp/
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: openforcefield/${{ matrix.env-name }}
add_git_labels: true
tag_with_ref: true
tag_with_sha: true